/* Hyderabad Paper Mills website. Navy and green from the logo and business card; brown comes from the photos. */
:root {
  --navy: #01377c;
  --navy-deep: #012a5e;
  --ink: #13213a;
  --muted: #56627a;
  --leaf: #4f9b2f;
  --kraft: #a87b4f;
  --mist: #eef2f8;
  --line: #d9e0ea;
  --wa: #25d366;
  --max: 1160px;
  --gut: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Archivo, system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }

h1, h2, h3 { font-stretch: 80%; font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 0.5em; color: var(--navy-deep); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; font-stretch: 90%; }
p { margin: 0 0 1em; max-width: 62ch; }
ul { padding-left: 1.2em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band.alt { background: var(--mist); }
.lead { font-size: 1.15rem; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 30; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 6px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-wa { background: var(--wa); color: #06341a; }
.btn-wa:hover { background: #1fbe5b; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--mist); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--navy-deep); text-decoration: none; }
.brand img { width: 44px; height: 48px; }
.brand strong { display: block; font-stretch: 85%; font-size: 1.15rem; line-height: 1.15; }
.brand small { display: block; font-size: 0.85rem; color: var(--muted); }
.site-nav { display: flex; gap: 24px; }
.site-nav > a { padding: 6px 0; border-bottom: 2px solid transparent; color: var(--ink); font-weight: 600; text-decoration: none; }
.site-nav > a:hover { color: var(--navy); }
.site-nav > a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--kraft); }
.menu-btn, .nav-cta { display: none; }

/* Phone menu button: three lines that turn into a cross */
.menu-btn { place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: 6px; background: none; color: var(--navy-deep); cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.25s ease, background-color 0.25s ease; }
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.open .menu-btn span { background-color: transparent; }
.open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero: navy panel with the curved edge and green line from the business card, photo behind */
.hero { position: relative; display: flex; min-height: min(78vh, 660px); background: var(--navy); color: #fff; }
.hero.short { min-height: 340px; }
.hero-photo { position: absolute; inset: 0 0 0 36%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-swoosh, .hero-panel { clip-path: ellipse(100% 120% at 0 50%); }
.hero-swoosh { position: absolute; inset: 0 auto 0 0; width: calc(60% + 12px); background: var(--leaf); }
.hero-panel {
  position: relative; width: 60%; display: flex; align-items: center; background: var(--navy);
  padding: 64px 12% 64px max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));
}
.hero h1 { color: #fff; }
.hero p { color: #d5e0f1; font-size: 1.15rem; }
.hero .btn-wa:focus-visible, .hero .btn-ghost:focus-visible { outline-color: #fff; }

/* Section heading row */
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; align-items: end; margin-bottom: 40px; }
.sec-head p { margin: 0; color: var(--muted); }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.products img, .split img, .service img { width: 100%; object-fit: cover; border-radius: 6px; }
.products img { aspect-ratio: 4 / 3; margin-bottom: 18px; }
.products p { color: var(--muted); }

/* Process: a paper web runs through the numbered steps */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 4px; background: var(--kraft); }
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.2rem; position: relative;
}
.steps p { color: var(--muted); margin: 0; }

/* Two-column image + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split img { aspect-ratio: 4 / 3; }
.ticks { list-style: none; padding: 0; margin: 0 0 8px; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.45em; width: 12px; height: 7px; border-left: 3px solid var(--leaf); border-bottom: 3px solid var(--leaf); transform: rotate(-45deg); }

/* Values and services */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
.values > div { border-top: 3px solid var(--kraft); padding-top: 20px; }
.values p { color: var(--muted); margin: 0; }
.service { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service img { aspect-ratio: 4 / 3; }
.values.three { grid-template-columns: repeat(3, 1fr); gap: 40px; }
.service { align-items: start; }

/* Spec sheet: strip under the home hero, table on the products page */
.specs { border-bottom: 1px solid var(--line); }
.specs dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.specs dl > div { padding: 28px 24px; border-left: 1px solid var(--line); }
.specs dl > div:first-child { padding-left: 0; border-left: 0; }
.specs dt { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.specs dd { margin: 2px 0 0; color: var(--navy-deep); font-stretch: 80%; font-weight: 800; font-size: 1.6rem; line-height: 1.15; }
.spec-table { width: 100%; border-collapse: collapse; margin: 8px 0 0; }
.spec-table caption { text-align: left; font-weight: 700; color: var(--navy-deep); padding-bottom: 8px; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-top: 1px solid var(--line); }
.spec-table th { width: 40%; color: var(--muted); font-weight: 600; }
.spec-table td { font-weight: 700; }

/* Call to action band */
.cta { background: var(--navy); color: #fff; padding: clamp(48px, 7vw, 80px) 0; border-top: 6px solid var(--leaf); }
.cta h2 { color: #fff; }
.cta p { color: #d5e0f1; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(32px, 5vw, 64px); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; }
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.contact-list a { font-weight: 700; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.map { width: 100%; height: 100%; min-height: 420px; border: 1px solid var(--line); border-radius: 6px; }

/* Footer */
.site-foot { background: var(--navy-deep); color: #c9d5e8; padding: 56px 0 96px; font-size: 0.95rem; } /* bottom space clears the WhatsApp button */
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot address { font-style: normal; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-name { display: block; color: #fff; font-stretch: 85%; font-size: 1.2rem; margin-bottom: 4px; }
.foot-h { color: #fff; font-size: 1rem; font-stretch: 100%; letter-spacing: 0; margin-bottom: 12px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.foot-base a { color: #fff; font-weight: 600; }

/* Motion: the hero settles in on load; sections rise into place as they scroll into view (site.js adds .in). */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo { overflow: hidden; }
  .hero-photo img { animation: settle 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-panel > div { animation: rise 0.9s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-swoosh { animation: sweep 1.1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .specs dl > div { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .specs dl > div:nth-child(1) { animation-delay: 0.35s; }
  .specs dl > div:nth-child(2) { animation-delay: 0.45s; }
  .specs dl > div:nth-child(3) { animation-delay: 0.55s; }
  .specs dl > div:nth-child(4) { animation-delay: 0.65s; }

  /* Scroll reveal: same list as site.js */
  .js :is(.sec-head, .products > article, .values > div, .steps > li, .service, .split > *, .contact-list > li, .map,
    .band > .wrap > h2, .band > .wrap > p, .band > .wrap > .actions, .cta .wrap > *) {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .js :is(.sec-head, .products > article, .values > div, .steps > li, .service, .split > *, .contact-list > li, .map,
    .band > .wrap > h2, .band > .wrap > p, .band > .wrap > .actions, .cta .wrap > *).in { opacity: 1; transform: none; }
  /* The paper web runs out through the numbered steps */
  .js .steps::before { transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .steps.in::before { transform: none; }
}
@keyframes settle { from { transform: scale(1.08); } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes sweep { from { transform: translateX(-14px); } }

/* WhatsApp button on every page */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 20; display: grid; place-items: center; width: 60px; height: 60px;
  border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(1, 42, 94, 0.3);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { background: #1fbe5b; }
/* Appears once the hero (which has its own WhatsApp button) scrolls away; site.js adds .show */
.js .wa-float { opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; }
.js .wa-float.show { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 900px) {
  .head-row { min-height: 64px; gap: 12px; }
  .head-call { display: none; }
  .brand img { width: 40px; height: 44px; }
  .brand strong { font-size: 1.02rem; }
  .brand small { font-size: 0.78rem; }
  /* Without JS the links stay in a row under the logo */
  html:not(.js) .head-row { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  html:not(.js) .site-nav { width: 100%; gap: 20px; }
  /* With JS: a menu button and a panel that drops down under the header */
  .js .menu-btn { display: grid; }
  .js .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 4px var(--gut) 20px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 36px rgba(1, 42, 94, 0.14);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
  }
  .js .open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s, transform 0.2s; }
  /* Dim the page behind the open menu; tapping it closes the menu (site.js) */
  .js .site-head::after { content: ""; position: fixed; inset: 65px 0 0; z-index: -1; background: rgba(1, 42, 94, 0.4); opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0s 0.2s; }
  .js .site-head.open::after { opacity: 1; visibility: visible; transition: opacity 0.2s; }
  .js .site-nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .js .site-nav > a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--kraft); padding-left: 14px; }
  .js .nav-cta { display: grid; gap: 10px; margin-top: 18px; }
  .nav-cta .btn { justify-content: center; }
  .hero, .hero.short { display: block; min-height: 0; }
  .hero-photo { position: relative; inset: auto; height: clamp(220px, 38vh, 340px); }
  .hero.short .hero-photo { height: 180px; min-height: 0; }
  .hero-swoosh { display: none; }
  .hero-panel { width: 100%; clip-path: none; border-top: 6px solid var(--leaf); padding: 40px var(--gut) 48px; }
  .sec-head, .split, .service, .contact-grid, .foot-grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .values, .values.three { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .specs dl { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .specs dl > div { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .specs dl > div:nth-child(-n + 2) { border-top: 0; }
  .specs dd { font-size: 1.3rem; }
}
@media (max-width: 600px) {
  .hero .actions .btn, .cta .actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 340px) {
  .brand small { display: none; }
}
