/* =====================================================================
   KARTHIKEYA PROPERTIES - STYLES
   Edit colours / spacing in section 1. Everything else follows from it.
   ===================================================================== */

/* 1. SETTINGS ------------------------------------------------------- */
:root {
  --bg: #141414;          /* page background            */
  --bg-dark: #000;        /* header / footer background */
  --card: #1f1f1f;        /* boxes                      */
  --text: #fff;
  --muted: #b3b3b3;
  --line: rgba(255,255,255,.14);
  --gold: #d4af37;        /* main accent colour         */
  --gold-light: #f0c550;

  --maxw: 1200px;                    /* widest the content can get */
  --gutter: clamp(16px, 4vw, 48px);  /* side margin on every screen */
  --header-h: 72px;
  --radius: 10px;
}

/* 2. BASE ----------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Inter', system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
section { padding: clamp(48px, 7vw, 88px) 0; }

/* Same left/right margin everywhere */
.container { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }

.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor;
        stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill { fill: currentColor; stroke: none; }

.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head p { margin-top: 10px; color: var(--muted); }
.kicker { display: block; margin-bottom: 8px; color: var(--gold-light);
          font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* 3. BUTTONS -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: .75em 1.4em; border: 0; border-radius: 6px; cursor: pointer;
  font: 700 1rem 'Inter', sans-serif; transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-white { background: #fff; color: #000; }
.btn-ghost { background: rgba(109,109,110,.55); color: #fff; }
.btn-gold  { background: var(--gold); color: #111; }
.btn-gold:hover { background: var(--gold-light); }
.btn-green { background: #128c3e; color: #fff; }
.btn-line  { border: 1.5px solid var(--muted); background: none; color: #fff; }

/* 4. HEADER --------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--header-h);
  background: linear-gradient(rgba(0,0,0,.85), transparent); transition: background .3s;
}
.site-header.solid { background: var(--bg-dark); box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap;
         font: 700 1.1rem 'Space Grotesk', sans-serif; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.menu { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.menu a { font-size: .95rem; font-weight: 500; color: #e5e5e5; }
.menu a:hover { color: var(--gold-light); }
.menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
.menu-toggle .icon { width: 28px; height: 28px; }

@media (max-width: 1000px) {
  .menu { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
          gap: 0; background: var(--bg-dark); max-height: 0; overflow: hidden; transition: max-height .25s; }
  .menu.open { max-height: 80vh; }
  .menu a { padding: 14px var(--gutter); border-top: 1px solid var(--line); }
  .menu-toggle { display: block; }
  .nav .btn-gold { display: none; }   /* mobile uses the bottom Call bar instead */
}

/* 5. HERO ----------------------------------------------------------- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: 100vh; min-height: 100svh;                 /* grows if content is taller - nothing gets cut */
  padding: calc(var(--header-h) + 32px) 0 56px; background: #000;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 2%, transparent 40%),
              linear-gradient(to right, rgba(0,0,0,.88) 10%, rgba(0,0,0,.3) 60%, transparent 90%); }
.hero-content { position: relative; max-width: 680px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.badge { padding: 5px 12px; border-radius: 4px; background: rgba(255,255,255,.14);
         border: 1px solid rgba(255,255,255,.25); font-size: .8rem; font-weight: 700; }
.badge.gold { background: var(--gold); border-color: var(--gold); color: #111; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); letter-spacing: -.02em; overflow-wrap: break-word; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-text { margin-top: 18px; max-width: 52ch; color: #e5e5e5; font-size: 1.1rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 26px;
              padding: 10px 18px; border: 1px solid var(--line); border-radius: 6px; background: rgba(0,0,0,.55); }
.hero-price strong { font: 700 1.8rem 'Space Grotesk', sans-serif; color: var(--gold-light); }
.hero-price span { color: var(--muted); font-size: .9rem; }

/* 6. PROPERTY ROWS (Netflix style) ---------------------------------- */
.row { padding: 20px 0; }
.row-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 4px; }
.row-head h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); }
.row-head span { color: var(--gold-light); font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.row-wrap { position: relative; }
.row-track {
  --edge: max(var(--gutter), calc((100% - var(--maxw)) / 2));   /* lines cards up with the page margin */
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 24px var(--edge) 32px; scroll-padding-inline: var(--edge);
}
.row-track::-webkit-scrollbar { display: none; }
.row-arrow { position: absolute; top: 24px; bottom: 32px; z-index: 6; width: 48px; border: 0; color: #fff; cursor: pointer;
             background: rgba(20,20,20,.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.row-wrap:hover .row-arrow { opacity: 1; }
.row-arrow.left { left: 0; } .row-arrow.right { right: 0; }
.row-arrow .icon { width: 28px; height: 28px; }
@media (hover: none) { .row-arrow { display: none; } }

.p-card { position: relative; flex: 0 0 clamp(230px, 72vw, 290px); aspect-ratio: 16 / 11; overflow: hidden;
          border-radius: 8px; background: var(--card); scroll-snap-align: start; transition: transform .3s, box-shadow .3s; }
.p-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.p-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,.1) 60%); }
.p-card .badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--gold); border: 0; color: #111; font-size: .7rem; }
.p-info { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 14px; }
.p-info small { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.p-info h3 { font-size: 1.05rem; }
.p-info p, .p-cta { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s, opacity .3s; font-size: .8rem; }
.p-info p { color: var(--muted); margin-top: 4px; }
.p-cta { display: block; margin-top: 6px; color: var(--gold-light); font-weight: 700; }
@media (hover: hover) {
  .p-card:hover { transform: scale(1.07); z-index: 5; box-shadow: 0 20px 40px -10px rgba(0,0,0,.8); }
  .p-card:hover img { transform: scale(1.06); }
  .p-card:hover .p-info p, .p-card:hover .p-cta { max-height: 40px; opacity: 1; }
}
@media (hover: none) { .p-info p, .p-cta { max-height: none; opacity: 1; } }

/* 7. PRICE BAND ----------------------------------------------------- */
.price-band { background: radial-gradient(ellipse at 50% 0%, rgba(212,175,55,.2), transparent 60%), #000; text-align: center; }
.price-band .container { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.price-band h2 { font-size: clamp(1.8rem, 1rem + 3.5vw, 3.2rem); }
.price-band h2 span { color: var(--gold-light); }
.price-band p { max-width: 52ch; color: var(--muted); }

/* 8. WHY US / AREAS / ABOUT / CONTACT (shared grid) ---------------- */
.grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid.wide { gap: clamp(28px, 5vw, 50px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: center; }

.why { display: flex; gap: 14px; }
.why .ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 10px;
            background: var(--card); border: 1px solid var(--line); color: var(--gold-light); }
.why h3 { margin-bottom: 4px; font-size: 1.05rem; }
.why p { color: var(--muted); font-size: .95rem; }

.box { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.box h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 1.05rem; }
.tag { padding: 3px 9px; border-radius: 3px; background: var(--gold); color: #111; font: 800 .7rem 'Inter', sans-serif; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips span { padding: 6px 14px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); font-size: .9rem; transition: .2s; }
.chips span:hover { background: var(--gold); border-color: var(--gold); color: #111; }

.about { background: var(--card); }
.about img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.about p { margin-top: 16px; color: var(--muted); line-height: 1.8; }

/* 9. FAQ ------------------------------------------------------------ */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { margin-bottom: 12px; padding: 4px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.faq summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-light); font-size: 1.4rem; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 16px; color: var(--muted); }

/* 10. CONTACT + FORMS ---------------------------------------------- */
.contact { background: #000; }
.contact-list { display: grid; gap: 18px; margin-top: 24px; }
.contact-list div { display: flex; gap: 14px; }
.contact-list .ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 10px;
                     background: var(--card); border: 1px solid var(--line); color: var(--gold-light); }
.contact-list h4 { font-size: .95rem; }
.contact-list p, .contact-list a { color: var(--muted); font-size: .95rem; }

form.card { display: grid; gap: 14px; padding: clamp(20px, 4vw, 30px); border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
form.card h3 { font-size: 1.25rem; }
form.card > p { margin-top: -8px; color: var(--muted); font-size: .9rem; }
label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .85rem; font-weight: 600; }
input, select, textarea { width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 6px;
                          background: #0d0d0d; color: #fff; font: 1rem 'Inter', sans-serif; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.note { color: #808080; font-size: .75rem; text-align: center; }

/* 11. FOOTER -------------------------------------------------------- */
footer { padding: 50px 0 24px; border-top: 1px solid var(--line); background: #000; color: #808080; }
footer .grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding-bottom: 32px; }
footer h4 { margin-bottom: 14px; color: #fff; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
footer a:hover { color: #fff; }
footer .brand { margin-bottom: 14px; color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); transition: .25s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: #111; }
.copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; }

/* 12. FLOATING BUTTONS + POPUP ------------------------------------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; place-items: center; width: 58px; height: 58px;
            border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.wa-float .icon { width: 30px; height: 30px; }
.sticky-bar { display: none; position: fixed; inset: auto 0 0 0; z-index: 55; gap: 10px; padding: 10px var(--gutter);
              background: #000; border-top: 1px solid var(--line); }
.sticky-bar .btn { flex: 1; }
@media (max-width: 640px) {
  .sticky-bar { display: flex; }
  .wa-float { bottom: 80px; }
  body { padding-bottom: 66px; }
}

.popup { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
         background: rgba(0,0,0,.78); opacity: 0; pointer-events: none; transition: opacity .25s; }
.popup.open { opacity: 1; pointer-events: auto; }
.popup form.card { position: relative; width: min(100%, 420px); max-height: 92vh; overflow-y: auto; }
.popup-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px;
               border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.popup .badge { justify-self: start; }
.popup-skip { background: none; border: 0; color: var(--muted); cursor: pointer; font: .85rem 'Inter', sans-serif; }

::selection { background: var(--gold); color: #111; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
