/* ==========================================================================
   Universal Design Impex Ltd — udimarble.com
   Static site stylesheet (no frameworks, no external dependencies)
   Palette preserved from the original site (Twenty Twenty-Four "Marble" tones)
   ========================================================================== */

:root {
  --base:        #D6D2CE;   /* warm stone */
  --base-2:      #E1DFDB;   /* light stone */
  --contrast:    #1A1514;   /* near-black brown */
  --contrast-2:  #65574E;   /* warm taupe */
  --contrast-3:  #958D86;   /* muted stone */
  --white:       #ffffff;
  --accent:      #65574E;
  --max:         1180px;
  --radius:      10px;
  --shadow:      0 10px 30px rgba(26, 21, 20, .12);
  --serif: "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--contrast);
  background: var(--base-2);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--contrast-2); }
a:hover { color: var(--contrast); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--contrast);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--contrast-2);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(225, 223, 219, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 21, 20, .08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .7rem;
}

.brand img { width: 300px; height: auto; }

@media (max-width: 480px) {
  .brand img { width: 230px; }
}

.main-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-size: .92rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--contrast-2);
  padding-block: .4rem;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--contrast);
  border-bottom-color: var(--contrast-2);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
  color: var(--contrast);
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav-close { display: block; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    background: var(--base-2);
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform .25s ease;
    padding: 4.5rem 1.75rem 2rem;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 1.1rem; }
  .main-nav a { font-size: 1.05rem; }
  .nav-close {
    position: absolute;
    top: .9rem;
    right: .9rem;
    background: none;
    border: 0;
    padding: .5rem;
    cursor: pointer;
    color: var(--contrast);
  }
  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(26, 21, 20, .4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 40;
  }
  .nav-scrim.show { opacity: 1; pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .main-nav, .nav-scrim { transition: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: var(--white);
  background: var(--contrast);
  overflow: hidden;
}

.hero h1 { color: var(--white); }

.nav-close { display: none; }

.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}

.hero .wrap {
  position: relative;
  padding-block: clamp(4.5rem, 12vw, 8.5rem);
}

.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 42ch;
  color: rgba(255, 255, 255, .88);
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .8rem;
  color: var(--base);
  margin-bottom: 1.1rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: .85rem 1.7rem;
  border: 1px solid var(--contrast);
  background: var(--contrast);
  color: var(--white);
  text-decoration: none;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}

.btn:hover { background: var(--contrast-2); border-color: var(--contrast-2); color: var(--white); }

.btn--light { background: var(--white); border-color: var(--white); color: var(--contrast); }
.btn--light:hover { background: var(--base); border-color: var(--base); color: var(--contrast); }

/* ---------- Sections ---------- */

section { padding-block: clamp(3.5rem, 8vw, 6rem); }

.section-alt { background: var(--base); }

.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  color: var(--contrast-2);
  margin-bottom: .9rem;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.services-grid li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.8rem 1.8rem;
  box-shadow: var(--shadow);
  position: relative;
}

.services-grid li::before {
  content: "✳";
  display: block;
  font-size: 1.5rem;
  color: var(--contrast-2);
  margin-bottom: .9rem;
}

.services-grid h3 {
  margin-bottom: .55rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.services-grid p {
  margin: 0;
  color: var(--contrast-2);
  font-size: .98rem;
}

/* ---------- Projects / gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.1rem;
}

.gallery--large {
  grid-template-columns: repeat(auto-fill, minmax(min(480px, 100%), 1fr));
}

.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--base);
  cursor: zoom-in;
}

/* ---------- Map ---------- */

.map-frame {
  border: 0;
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  background: var(--base);
}

.gallery a:focus-visible { outline-offset: 4px; }

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery a:hover img { transform: scale(1.04); }

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow);
}

.contact-card h3 { margin-bottom: 1rem; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin-bottom: .9rem; }
.contact-list .label {
  display: block;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--contrast-3);
}

.contact-list a { text-decoration: none; font-size: 1.05rem; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- Contact form ---------- */

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 760px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.form-field { margin-bottom: 1.2rem; }

.form-field label {
  display: block;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--contrast-2);
  margin-bottom: .45rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--contrast-3);
  border-radius: 6px;
  font: inherit;
  color: var(--contrast);
  background: var(--white);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--contrast-2);
  outline-offset: 1px;
  border-color: var(--contrast-2);
}

.form-field textarea { resize: vertical; }

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  overflow: hidden;
}

.form-status { min-height: 1.4em; margin: 0 0 1rem; font-weight: 500; }
.form-status.ok { color: #1a6b34; }
.form-status.err { color: #a02c2c; }

button.btn { cursor: pointer; font-family: inherit; }
button.btn[disabled] { opacity: .55; cursor: wait; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--contrast);
  color: var(--base);
  padding-block: 2.75rem 2rem;
}

.site-footer a { color: var(--base); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h2, .site-footer h3 { color: var(--white); font-size: 1.05rem; font-family: var(--sans); letter-spacing: .08em; text-transform: uppercase; }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer .fine {
  border-top: 1px solid rgba(214, 210, 206, .2);
  padding-top: 1.4rem;
  font-size: .85rem;
  color: var(--contrast-3);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 21, 20, .93);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 6px;
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 0;
  border-radius: 999px;
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lightbox .lb-close { top: 1.2rem; right: 1.2rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  background: var(--base);
  padding-block: clamp(2.75rem, 7vw, 4.5rem);
  border-bottom: 1px solid rgba(26, 21, 20, .08);
}

.page-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  color: var(--contrast-2);
  margin-bottom: .8rem;
}

/* ---------- Misc ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--contrast);
  color: #fff;
  padding: .7rem 1.2rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }
