/* ============================================
   SARDAR RICE MILLS — SHARED STYLES v2
   Minimal. Corporate. Premium.
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  --green:       #1c3d2b;
  --green-mid:   #2a5940;
  --gold:        #b8953a;
  --gold-light:  #d4af5a;
  --gold-pale:   #f7f0df;
  --cream:       #f9f7f2;
  --off-white:   #f4f1ea;
  --warm-white:  #fefdfb;
  --dark:        #141412;
  --dark-mid:    #2c2c28;
  --text:        #363630;
  --text-light:  #6a6a60;
  --text-pale:   #9a9a8e;
  --border:      rgba(28,61,43,0.10);
  --border-gold: rgba(184,149,58,0.25);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'DM Sans',system-ui,sans-serif;
  color:var(--text);background:var(--warm-white);
  font-size:16px;line-height:1.7;overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img{display:block;max-width:100%;height:auto}
a{text-decoration:none;color:inherit}

/* NAVBAR */
.navbar{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  background:rgba(254,253,251,0.97);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
  transition:background .35s,border-color .35s;
}
.navbar.scrolled{background:rgba(20,20,18,0.97);border-color:transparent}
.navbar.scrolled .nav-links a{color:rgba(255,255,255,0.65)}
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active{color:#fff}
.navbar.scrolled .nav-links a.nav-cta{background:var(--gold);color:var(--dark)}
.navbar.scrolled .hamburger span{background:#fff}
.navbar.scrolled .nav-logo-text{color:#fff}
.navbar.scrolled .nav-logo-text span{color:var(--gold-light)}

.nav-container{
  max-width:1340px;margin:0 auto;padding:0 2.5rem;
  height:68px;display:flex;align-items:center;justify-content:space-between;
}
.nav-logo{display:flex;align-items:center;gap:.85rem;flex-shrink:0}
.nav-logo img{height:42px;width:auto}
.nav-logo-text{display:flex;flex-direction:column;line-height:1.1;color:var(--dark);transition:color .35s}
.nav-logo-text strong{
  font-family:'Cormorant Garamond',serif;font-size:1rem;
  font-weight:600;letter-spacing:.02em;
}
.nav-logo-text span{
  font-size:.58rem;font-weight:600;letter-spacing:.2em;
  text-transform:uppercase;color:var(--gold);
}
.nav-links{display:flex;align-items:center;list-style:none;gap:0}
.nav-links a{
  font-size:.72rem;font-weight:500;letter-spacing:.07em;
  text-transform:uppercase;color:var(--text);
  padding:.4rem .7rem;border-radius:2px;transition:color .2s;
}
.nav-links a:hover{color:var(--green)}
.nav-links a.active{color:var(--green);font-weight:600}
.nav-links a.nav-cta{
  background:var(--green);color:#fff;
  padding:.48rem 1.2rem;margin-left:.5rem;
  border-radius:2px;transition:background .2s;
}
.nav-links a.nav-cta:hover{background:var(--green-mid)}

.hamburger{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:4px}
.hamburger span{display:block;width:24px;height:1.5px;background:var(--dark);transition:all .3s}

/* MOBILE MENU */
.mobile-overlay{
  position:fixed;inset:0;background:rgba(0,0,0,0.55);
  z-index:1100;opacity:0;pointer-events:none;transition:opacity .3s;
}
.mobile-overlay.active{opacity:1;pointer-events:all}
.mobile-menu{
  position:fixed;top:0;right:-290px;width:270px;height:100%;
  background:var(--dark);z-index:1200;
  padding:1.5rem;transition:right .35s cubic-bezier(.4,0,.2,1);overflow-y:auto;
}
.mobile-menu.open{right:0}
.mobile-menu-header{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:1px solid rgba(255,255,255,0.08);
}
.mobile-menu-header img{height:36px}
.mobile-close{background:none;border:none;color:rgba(255,255,255,0.45);font-size:1.1rem;cursor:pointer}
.mobile-menu ul{list-style:none}
.mobile-menu ul li{border-bottom:1px solid rgba(255,255,255,0.06)}
.mobile-menu ul li a{
  display:block;padding:.85rem 0;
  color:rgba(255,255,255,0.7);font-size:.88rem;letter-spacing:.04em;transition:color .2s;
}
.mobile-menu ul li a:hover{color:#fff}
.mobile-menu ul li a.mobile-cta{
  color:var(--gold);font-weight:500;border-bottom:none;
  margin-top:1.5rem;padding:.75rem 1rem;
  border:1px solid var(--border-gold);border-radius:2px;text-align:center;display:block;
}

/* BUTTONS */
.btn-primary{
  display:inline-block;background:var(--green);color:#fff;
  padding:.78rem 1.9rem;border-radius:2px;
  font-size:.75rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  transition:background .2s,transform .2s;border:none;cursor:pointer;
}
.btn-primary:hover{background:var(--green-mid);transform:translateY(-1px)}
.btn-outline-dark{
  display:inline-block;border:1.5px solid var(--green);color:var(--green);
  padding:.78rem 1.9rem;border-radius:2px;
  font-size:.75rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;transition:all .2s;
}
.btn-outline-dark:hover{background:var(--green);color:#fff}
.btn-outline-light{
  display:inline-block;border:1px solid rgba(255,255,255,0.35);color:rgba(255,255,255,0.8);
  padding:.78rem 1.9rem;border-radius:2px;
  font-size:.75rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase;transition:all .2s;
}
.btn-outline-light:hover{border-color:#fff;color:#fff}
.btn-gold{
  display:inline-block;background:var(--gold);color:var(--dark);
  padding:.78rem 1.9rem;border-radius:2px;
  font-size:.75rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;transition:background .2s;
}
.btn-gold:hover{background:var(--gold-light)}
.btn-text{
  display:inline-flex;align-items:center;gap:.5rem;color:var(--green);
  font-size:.72rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  border-bottom:1px solid rgba(28,61,43,0.25);padding-bottom:2px;transition:gap .2s;
}
.btn-text:hover{gap:.85rem}
.btn-whatsapp{
  display:inline-flex;align-items:center;gap:.5rem;background:#25D366;color:#fff;
  padding:.78rem 1.6rem;border-radius:2px;
  font-size:.75rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;transition:background .2s;
}
.btn-whatsapp svg{width:15px;height:15px;flex-shrink:0}
.btn-whatsapp:hover{background:#1da355}

/* LAYOUT */
.section{padding:6rem 0}
.container{max-width:1240px;margin:0 auto;padding:0 2.5rem}

.label{
  display:inline-block;font-size:.62rem;font-weight:700;
  letter-spacing:.22em;text-transform:uppercase;color:var(--gold);margin-bottom:.9rem;
}
.section-header{margin-bottom:3rem}
.section-header.center{text-align:center}
.section-header.center .label{display:block}
.section-header h2{
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(1.8rem,3vw,2.7rem);font-weight:400;
  color:var(--dark);line-height:1.2;
}
.section-header p{
  color:var(--text-light);font-size:.9rem;
  max-width:520px;line-height:1.8;margin-top:.65rem;
}
.section-header.center p{margin:0 auto}
.gold-rule{display:block;width:36px;height:1.5px;background:var(--gold);margin-bottom:1.5rem}

/* PAGE HERO */
.page-hero{
  position:relative;height:360px;
  display:flex;align-items:flex-end;overflow:hidden;margin-top:68px;
}
.page-hero-bg{position:absolute;inset:0}
.page-hero-bg img{width:100%;height:100%;object-fit:cover;object-position:center}
.page-hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(to top,rgba(10,20,14,.9) 0%,rgba(10,20,14,.4) 55%,rgba(10,20,14,.12) 100%);
}
.page-hero-content{
  position:relative;z-index:2;padding:3rem 2.5rem;
  max-width:1240px;margin:0 auto;width:100%;
}
.page-hero-content .label{color:var(--gold)}
.page-hero-content h1{
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(2rem,4vw,3.2rem);font-weight:400;
  color:#fff;line-height:1.15;max-width:620px;
}
.page-hero-content p{
  color:rgba(255,255,255,.6);font-size:.88rem;
  max-width:480px;margin-top:.75rem;line-height:1.75;
}

/* FOOTER */
.footer{background:#0f1e15;position:relative;overflow:hidden}
.footer-inner{position:relative;z-index:2;max-width:1240px;margin:0 auto;padding:5rem 2.5rem 2.5rem}
.footer-grid{
  display:grid;grid-template-columns:1.6fr .9fr 1.1fr 1.3fr;
  gap:3rem;padding-bottom:3rem;
  border-bottom:1px solid rgba(255,255,255,.07);margin-bottom:2rem;
}
.footer-logo{height:50px;width:auto;margin-bottom:1.25rem}
.footer-col p{color:rgba(255,255,255,.45);font-size:.83rem;line-height:1.85}
.footer-tagline{
  color:rgba(184,149,58,.75)!important;font-style:italic;
  font-family:'Cormorant Garamond',serif;font-size:.88rem!important;margin-top:.85rem;
}
.footer-col h4{
  font-size:.6rem;font-weight:700;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(255,255,255,.3);margin-bottom:1.25rem;
}
.footer-col ul{list-style:none}
.footer-col ul li{margin-bottom:.45rem}
.footer-col ul li a{color:rgba(255,255,255,.5);font-size:.83rem;transition:color .2s}
.footer-col ul li a:hover{color:rgba(255,255,255,.9)}
.footer-contact-item{margin-bottom:.75rem}
.footer-contact-item strong{
  display:block;color:rgba(255,255,255,.28);font-size:.58rem;
  font-weight:700;letter-spacing:.18em;text-transform:uppercase;margin-bottom:.18rem;
}
.footer-contact-item span,.footer-contact-item a{color:rgba(255,255,255,.55);font-size:.83rem;transition:color .2s}
.footer-contact-item a:hover{color:rgba(255,255,255,.9)}
.dept-list{list-style:none;margin-bottom:1.5rem}
.dept-list li{padding:.6rem 0;border-bottom:1px solid rgba(255,255,255,.05)}
.dept-list li span{
  display:block;color:rgba(255,255,255,.28);font-size:.58rem;
  font-weight:700;letter-spacing:.15em;text-transform:uppercase;margin-bottom:.18rem;
}
.dept-list li a{color:rgba(255,255,255,.55);font-size:.8rem;transition:color .2s}
.dept-list li a:hover{color:var(--gold)}
.footer-cta-note{color:rgba(255,255,255,.45)!important;font-size:.8rem!important;margin-bottom:.85rem}
.footer-bottom{
  display:flex;justify-content:space-between;align-items:center;
  color:rgba(255,255,255,.22);font-size:.73rem;
}

/* WHATSAPP SVG ICON */
.wa-icon{fill:currentColor}

/* RESPONSIVE */
@media(max-width:1060px){
  .nav-links{display:none}
  .hamburger{display:flex}
  .footer-grid{grid-template-columns:1fr 1fr;gap:2rem}
}
@media(max-width:640px){
  .section{padding:4rem 0}
  .container{padding:0 1.5rem}
  .nav-container{padding:0 1.5rem}
  .page-hero{height:280px}
  .page-hero-content{padding:2rem 1.5rem}
  .footer-grid{grid-template-columns:1fr;gap:1.75rem}
  .footer-inner{padding:3.5rem 1.5rem 2rem}
  .footer-bottom{flex-direction:column;gap:.4rem;text-align:center}
}

/* ── ADDITIONAL POLISH ── */

/* page-hero margin fix - all inner pages need top offset */
.page-hero { margin-top: 68px; }

/* infra-aerial gets its own margin */
.infra-aerial { margin-top: 68px; }

/* about-hero also */
.about-hero { margin-top: 68px; }

/* gold-rule utility */
.gold-rule {
  display: block;
  width: 36px;
  height: 1.5px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

/* Smooth image transitions globally */
img { transition: opacity 0.3s ease; }

/* Better link focus states */
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Selection color */
::selection {
  background: rgba(184,149,58,0.25);
  color: var(--dark);
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: rgba(28,61,43,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* Pillar and module hover border accent */
.pillar { border-bottom: 2px solid transparent; transition: background .2s, border-color .2s; }
.pillar:hover { border-bottom-color: var(--gold); }

/* Nav active bar */
.nav-links a.active {
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: .7rem;
  right: .7rem;
  height: 1.5px;
  background: var(--gold);
  border-radius: 1px;
}

/* Smooth section transitions */
.section { transition: none; }

/* Better button active states */
.btn-primary:active { transform: translateY(0); }
.btn-gold:active { opacity: 0.9; }

/* Responsive nav logo text hide on very small screens */
@media(max-width: 360px) {
  .nav-logo-text { display: none; }
  .nav-logo img { height: 36px; }
}

/* Improve hero strip on narrow mobile */
@media(max-width: 480px) {
  .hero-strip-inner {
    padding: 0 1rem;
    flex-wrap: wrap;
  }
  .strip-item {
    min-width: 50%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: .9rem 1rem;
  }
}

/* Print: hide nav, footer, hero */
@media print {
  .navbar, .footer, .mobile-menu, .mobile-overlay { display: none !important; }
  .page-hero, .about-hero, .infra-aerial { margin-top: 0; }
  body { color: #000; }
}
