/*
Theme Name: Ankit Solar Tech Solutions
Description: The Ankit Solar Tech Solutions landing page with rooftop solar, franchise enquiries, and WhatsApp quote drafts.
Version: 1.0.0
Text Domain: ankit-solar-tech-solutions
*/

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #fbfaf7;
  --white: #fff;
  --ink: #1c3331;
  --deep: #172e2b;
  --muted: #52605a;
  --line: #dbded6;
  --sun: #ffcd62;
  --sun-hover: #f7be45;
  --focus: #8a5203;
  --serif: "Instrument Serif", Georgia, serif;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 100%;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, figure { margin: 0; }
p { line-height: 1.6; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.shell {
  width: min(100% - clamp(2rem, 8.33vw, 8rem), 1260px);
  margin-inline: auto;
}

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.skip-link:focus {
  position: absolute;
  inset: 1rem auto auto 1rem;
  z-index: 3;
  padding: .75rem 1rem;
  background: var(--white);
}

.site-header {
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

.header-inner { min-height: 5.35rem; }

.brand {
  display: inline-flex;
  gap: .64rem;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.brand img { object-fit: contain; }
.brand strong, .brand small { display: block; }

.brand strong {
  color: #ac4a0c;
  font-family: Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .025em;
  line-height: 1.1;
}

.brand small {
  margin-top: .23rem;
  color: #323568;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .115em;
  font-weight: 750;
}

.main-nav, .site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 2.65rem);
}

.main-nav > a, .site-footer nav a {
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
}

.main-nav > a:not(.button):hover, .site-footer nav a:hover { text-decoration: underline; }

.button {
  display: inline-flex;
  min-height: 3.22rem;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .72rem 1.28rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  background: var(--sun);
  color: var(--deep);
  text-align: center;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 750;
  line-height: 1.25;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.button:hover { background: var(--sun-hover); }
.button-small { min-height: 2.7rem; padding-inline: 1rem; }
.button-outline { background: transparent; border-color: #a7b0a6; }
.button-outline:hover { background: #f0f0e7; border-color: #7e8b7d; }
.button-whatsapp {
  gap: .54rem;
  background: #176446;
  color: var(--white);
}

.button-whatsapp:hover { background: #114e38; }
.button-whatsapp img { flex: 0 0 18px; }
.menu-toggle { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.75rem, 5vw, 5.5rem);
  padding-block: clamp(2.35rem, 4.3vw, 4.6rem);
}

.hero-content { padding-block: 1rem; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .58rem;
  margin-bottom: 1rem;
  font-size: .875rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .13em;
  line-height: 1.25;
}

.sun-mark {
  display: inline-block;
  flex: 0 0 .84rem;
  width: .84rem;
  height: .84rem;
  background: #bd7219;
  clip-path: polygon(50% 0, 57% 29%, 75% 7%, 72% 37%, 94% 25%, 81% 47%, 100% 50%, 81% 56%, 94% 75%, 71% 66%, 75% 93%, 57% 74%, 50% 100%, 43% 74%, 25% 93%, 29% 66%, 6% 75%, 19% 56%, 0 50%, 19% 44%, 6% 25%, 29% 36%, 25% 7%, 43% 29%);
}

h1 {
  font-size: clamp(2.8rem, 4.85vw, 5rem);
  letter-spacing: -.073em;
  font-weight: 720;
  line-height: .99;
}

h1 em {
  display: inline-block;
  margin-top: .045em;
  font-family: var(--serif);
  font-size: 1.31em;
  font-weight: 400;
  letter-spacing: -.035em;
  color: #386156;
}

.hero-description {
  margin-top: 1.45rem;
  max-width: 31ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.6;
}

.hero-actions, .result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .72rem;
}

.hero-actions { margin-top: 1.9rem; }

.hero-image {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(20rem, 37vw, 33rem);
  border-radius: 1.12rem;
  background: #35504a;
}

.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
}

.hero-image figcaption {
  position: absolute;
  right: .8rem;
  bottom: .8rem;
  padding: .32rem .56rem;
  border-radius: .32rem;
  background: #142723e8;
  color: var(--white);
  font-size: .75rem;
}

.section-block {
  padding-block: clamp(3rem, 6.5vw, 6.5rem);
  scroll-margin-top: 1rem;
}

.solutions { border-top: 1px solid var(--line); }

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
  align-items: end;
  gap: 1.05rem 2rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.8rem);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2.9rem, 5.1vw, 5.05rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: .98;
  text-wrap: balance;
}

.section-intro > p, .quote-intro > p:last-child { color: var(--muted); font-size: 1.05rem; }
.section-intro > p { padding-bottom: .15rem; }

.service-grid, .planning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(1.25rem, 2.4vw, 2.2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: .95rem;
}

.service-icon { margin-bottom: 1.4rem; }
h3 { font-size: clamp(1.15rem, 1.65vw, 1.45rem); line-height: 1.22; letter-spacing: -.035em; }
.service-card p { margin: .65rem 0 1.5rem; color: var(--muted); }
.text-link { margin-top: auto; font-size: .94rem; font-weight: 750; text-underline-offset: .25em; }
.text-link:hover { color: #81551a; }

.franchise { padding-top: 0; }

.franchise-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(1.25rem, 5.5vw, 5rem);
  padding: clamp(1.4rem, 4.8vw, 4.5rem);
  border: 1px solid #e5d8b7;
  border-radius: 1.1rem;
  background: linear-gradient(112deg, #fff3d1, #f7eed8);
}

.franchise-panel h2 { text-wrap: initial; }
.franchise-enquiry p { color: var(--muted); }
.franchise-enquiry p + p { margin-top: .6rem; }
.franchise-enquiry .button { margin-top: 1.15rem; }

.planning { background: var(--deep); color: #fbfaf4; }
.planning .sun-mark { background: var(--sun); }
.planning .section-intro > p { color: #d4e0d5; }
.planning-grid { column-gap: clamp(1rem, 4.25vw, 4rem); }

.planning-grid article {
  border-top: 1px solid #657971;
  padding-top: 1.25rem;
}

.planning-grid h3 { color: #ffdb89; }
.planning-grid p { margin-top: .65rem; color: #d4e0d5; }

.faq, .quote-inner {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(1.5rem, 6vw, 6rem);
  align-items: start;
}

.faq h2, .quote h2 { text-wrap: initial; }

.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 1.2rem;
  list-style: none;
  cursor: pointer;
  font-weight: 750;
  line-height: 1.4;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.3rem;
  color: #426257;
}

.faq-list details[open] summary::after { content: "−"; }
.faq-list p { padding: 0 2rem 1.25rem 0; color: var(--muted); }

.quote {
  background: #f4ecd3;
  border-top: 1px solid #e6dbb8;
  border-bottom: 1px solid #e6dbb8;
}

.quote-intro > p:last-child { margin-top: 1.05rem; max-width: 31ch; }

.quote-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.15rem, 2.8vw, 2.55rem);
  background: var(--white);
  border-radius: 1rem;
  border: 1px solid #e4dbc1;
}

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.quote-form label { display: block; min-width: 0; font-size: .94rem; font-weight: 720; }
.optional { color: var(--muted); font-size: .875rem; font-weight: 500; }

.quote-form input, .quote-form select, .quote-form textarea {
  display: block;
  width: 100%;
  padding: .66rem .75rem;
  margin-top: .42rem;
  min-height: 2.9rem;
  color: var(--ink);
  background-color: var(--canvas);
  border: 1px solid #a7b0a6;
  border-radius: .45rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}

.quote-form input::placeholder, .quote-form textarea::placeholder { color: #606b64; }

.quote-form select {
  appearance: none;
  padding-right: 2.2rem;
  background-image:
    linear-gradient(45deg, transparent 49%, #426257 51%),
    linear-gradient(135deg, #426257 49%, transparent 51%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.quote-form textarea { resize: vertical; }
.quote-result { padding-top: 1.15rem; border-top: 1px solid var(--line); }
.result-actions { margin-top: .85rem; }
.form-note { margin: .45rem 0; color: var(--muted); font-size: .92rem; }
.form-note:empty { margin: 0; }

.site-footer { padding-block: 1.9rem; }

@media (max-width: 900px) {
  .main-nav { gap: 1rem; }
  .field-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 4.55rem; flex-wrap: wrap; gap: 0; padding-block: .75rem; }
  .brand img { width: 2.75rem; height: auto; }

  .menu-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.65rem;
    padding: .4rem .7rem;
    border: 1px solid var(--line);
    border-radius: .45rem;
    color: var(--ink);
    background: transparent;
    font-size: .9rem;
    font-weight: 700;
  }

  .menu-icon {
    width: .85rem;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -4px currentColor, 0 4px currentColor;
  }

  .main-nav {
    flex: 0 0 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: .1rem;
    padding-block: .8rem .2rem;
  }

  .main-nav > a:not(.button) { padding-block: .6rem; }
  .main-nav .button { margin-top: .38rem; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2rem; }
  .hero-content { padding: 0; }
  h1 { font-size: clamp(2.6rem, 8.1vw, 4.35rem); }
  .hero-description { max-width: 42ch; margin-top: 1.08rem; }
  .hero-actions { margin-top: 1.25rem; }
  .hero-image { min-height: 0; aspect-ratio: 1.3; border-radius: .85rem; }
  .section-intro, .franchise-panel, .faq, .quote-inner { grid-template-columns: 1fr; }
  .section-intro { align-items: start; }
  h2 { text-wrap: initial; }
  .service-grid, .planning-grid { grid-template-columns: 1fr; }
  .planning-grid { row-gap: 1.6rem; }
  .service-icon { margin-bottom: 1rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .site-footer nav { gap: .75rem 1.15rem; }
}

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

.entry-list { max-width: 58rem; }
.site-entry + .site-entry { margin-top: 3rem; }
.entry-content { margin-top: 1.1rem; }
.entry-content p + p { margin-top: .9rem; }
