/* ============================================================
   GOLDENEYE WINDOW TINTING - PLAN A DESIGN SYSTEM
   Shared styles for Home / About / Request An Estimate
   ============================================================ */

*,
*::before,
*::after {
   margin: 0;
   padding: 0;
   box-sizing: border-box
}

:root {
   --ink: #0B0B0D;
   --red: #DC1E2E;
   --red-deep: #A6131F;
   --red-bright: #F02434;
   --red-pale: #FDE8EA;
   --paper: #FFFFFF;
   --cream: #F7F4EE;
   --bone: #FAF8F4;
   --muted: #6E6E74;
   --line: rgba(11, 11, 13, 0.08);
   --line-strong: rgba(11, 11, 13, 0.16);

   --sans: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
   --serif: 'Fraunces', Georgia, serif;

   --max: 1440px;
   --gutter-x: clamp(20px, 5vw, 72px);
}

html {
   font-size: 16px;
   scroll-behavior: smooth;
   text-rendering: optimizeLegibility;
   -webkit-font-smoothing: antialiased
}

body {
   font-family: var(--sans);
   color: var(--ink);
   background: var(--paper);
   line-height: 1.5;
   overflow-x: hidden;
}

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

a {
   color: inherit;
   text-decoration: none
}

button {
   border: 0;
   background: 0;
   cursor: pointer;
   font: inherit;
   color: inherit
}

/* ============================================================
   TOP UTILITY STRIP (red)
   ============================================================ */
.util {
   background: var(--red);
   color: var(--paper);
   font-size: 13px;
   font-weight: 500
}

.util-inner {
   max-width: var(--max);
   margin: 0 auto;
   padding: 10px var(--gutter-x);
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 20px
}

.util-left {
   display: flex;
   align-items: center;
   gap: 28px
}

.util-item {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   transition: opacity 0.2s
}

.util-item:hover {
   opacity: 0.78
}

.util-item svg {
   width: 14px;
   height: 14px;
   flex-shrink: 0
}

.util-right {
   display: flex;
   align-items: center;
   gap: 20px
}

/* Facebook icon: square white tile so it reads as a deliberate brand
   mark rather than disappearing as a thin glyph. True square corners
   match the geometric brand language. Stays prominent across all
   desktop resolutions. */
.util-right .util-item[aria-label="Facebook"] {
   width: 30px;
   height: 30px;
   background: var(--paper);
   color: var(--red);
   border-radius: 0;
   justify-content: center;
   transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease
}
.util-right .util-item[aria-label="Facebook"]:hover {
   opacity: 1;
   transform: translateY(-1px);
   box-shadow: 0 3px 0 rgba(0, 0, 0, 0.16)
}
.util-right .util-item[aria-label="Facebook"] svg {
   width: 16px;
   height: 16px
}

.util-cta {
   background: var(--paper);
   color: var(--red);
   font-weight: 700;
   font-size: 12px;
   padding: 8px 16px;
   letter-spacing: 0.5px;
   white-space: nowrap;
   transition: transform 0.2s, box-shadow 0.2s;
}

.util-cta:hover {
   transform: translateY(-1px);
   box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18)
}

@media(max-width:840px) {
   .util-left {
      gap: 14px;
      font-size: 12px
   }

   .util-left .util-item:last-child {
      display: none
   }

   .util-right {
      gap: 12px
   }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
   background: var(--paper);
   border-bottom: 1px solid var(--line);
   position: sticky;
   top: 0;
   z-index: 50
}

.nav-inner {
   max-width: var(--max);
   margin: 0 auto;
   padding: 18px var(--gutter-x);
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 24px
}

.nav-logo {
   display: flex;
   align-items: center;
   gap: 12px;
   font-family: var(--serif);
   font-size: 22px;
   font-weight: 500;
   color: var(--ink);
   letter-spacing: -0.3px
}

.nav-logo-seal {
   width: auto;
   height: auto;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0
}

.nav-logo-seal img {
   width: auto;
   height: 70px;
   object-fit: contain;
   display: block
}

.nav-menu {
   display: flex;
   gap: 36px;
   list-style: none;
   font-size: 14px;
   font-weight: 500
}

.nav-menu a {
   position: relative;
   padding: 4px 0;
   transition: color 0.2s
}

.nav-menu a::after {
   content: '';
   position: absolute;
   left: 0;
   right: 0;
   bottom: -2px;
   height: 2px;
   background: var(--red);
   transform: scaleX(0);
   transform-origin: left;
   transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1)
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
   transform: scaleX(1)
}

.nav-menu a.active {
   color: var(--red)
}

.nav-cta {
   background: var(--ink);
   color: var(--paper);
   padding: 12px 22px;
   font-weight: 700;
   font-size: 13px;
   letter-spacing: 0.3px;
   display: inline-flex;
   align-items: center;
   gap: 10px;
   transition: background 0.2s
}

.nav-cta:hover {
   background: var(--red)
}

.nav-cta svg {
   width: 14px;
   height: 14px
}

@media(max-width:840px) {
   .nav-menu {
      display: none
   }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
   display: inline-flex;
   align-items: center;
   gap: 12px;
   background: var(--paper);
   color: var(--red);
   padding: 18px 28px;
   font-weight: 800;
   font-size: 14px;
   letter-spacing: 0.4px;
   text-transform: uppercase;
   transition: transform 0.2s;
   position: relative;
}

.btn-primary::after {
   content: '';
   position: absolute;
   inset: 0;
   border: 2px solid var(--red);
   transform: translate(6px, 6px);
   transition: transform 0.2s;
   z-index: -1
}

.btn-primary:hover {
   transform: translate(-2px, -2px)
}

.btn-primary:hover::after {
   transform: translate(8px, 8px)
}

.btn-primary svg {
   width: 16px;
   height: 16px;
   transition: transform 0.2s
}

.btn-primary:hover svg {
   transform: translateX(4px)
}

.btn-ghost {
   display: inline-flex;
   align-items: center;
   gap: 10px;
   color: var(--paper);
   font-weight: 600;
   font-size: 14px;
   letter-spacing: 0.3px;
   padding: 10px 6px;
   border-bottom: 1px solid rgba(255, 255, 255, 0.3);
   transition: border-color 0.2s
}

.btn-ghost:hover {
   border-color: var(--paper)
}

/* ============================================================
   SECTION BASICS + TYPOGRAPHY
   ============================================================ */
.section {
   padding: clamp(56px, 8vw, 96px) var(--gutter-x)
}

.section-inner {
   max-width: var(--max);
   margin: 0 auto
}

.section.cream {
   background: var(--cream)
}

.section.bone {
   background: var(--bone)
}

.section.dark {
   background: var(--ink);
   color: var(--paper)
}

.eyebrow {
   display: inline-flex;
   align-items: center;
   gap: 12px;
   font-size: 12px;
   font-weight: 700;
   letter-spacing: 2.6px;
   text-transform: uppercase;
   color: var(--red);
   margin-bottom: 18px
}

.eyebrow::before {
   content: '';
   width: 32px;
   height: 2px;
   background: var(--red)
}

.section.dark .eyebrow {
   color: var(--paper)
}

.h1-big {
   font-family: var(--sans);
   font-weight: 900;
   font-size: clamp(52px, 8vw, 110px);
   line-height: 0.95;
   letter-spacing: -0.035em;
   margin-bottom: 18px
}

.h1-big em {
   font-family: var(--serif);
   font-weight: 400;
   font-style: italic;
   color: var(--red)
}

.h2 {
   font-family: var(--sans);
   font-weight: 900;
   font-size: clamp(38px, 5vw, 64px);
   line-height: 0.98;
   letter-spacing: -0.03em;
   margin-bottom: 20px
}

.h2 em {
   font-family: var(--serif);
   font-weight: 400;
   font-style: italic;
   color: var(--red)
}

.section-lede {
   font-size: 17px;
   color: var(--muted);
   line-height: 1.65;
   max-width: 620px;
   margin-bottom: 40px
}

.section.dark .section-lede {
   color: rgba(255, 255, 255, 0.72)
}

/* ============================================================
   PAGE HEADER (for About + Estimate pages)
   ============================================================ */
.page-head {
   background: var(--ink);
   color: var(--paper);
   padding: clamp(96px, 11vw, 144px) var(--gutter-x) clamp(56px, 8vw, 88px);
   position: relative;
   overflow: hidden;
}

.page-head-inner {
   max-width: var(--max);
   margin: 0 auto;
   position: relative;
   z-index: 2
}

.page-head-eyebrow {
   font-size: 12px;
   font-weight: 700;
   letter-spacing: 3px;
   text-transform: uppercase;
   color: var(--paper);
   margin-bottom: 18px;
   display: flex;
   align-items: center;
   gap: 14px
}

.page-head-eyebrow::before {
   content: '';
   width: 40px;
   height: 2px;
   background: var(--red)
}

.page-head-title {
   font-family: var(--sans);
   font-weight: 900;
   font-size: clamp(52px, 8vw, 110px);
   line-height: 0.98;
   letter-spacing: -0.035em;
   margin-bottom: 20px;
   color: var(--paper)
}

.page-head-title .line {
   display: block
}

.page-head-title em {
   font-family: var(--serif);
   font-weight: 400;
   font-style: italic;
   color: var(--red)
}

.page-head-sub {
   font-size: 17px;
   color: rgba(255, 255, 255, 0.72);
   line-height: 1.6;
   max-width: 640px
}

.page-head-dots {
   position: absolute;
   top: 60px;
   right: 50px;
   width: 200px;
   height: 130px;
   background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 1.5px, transparent 1.5px);
   background-size: 16px 16px;
   pointer-events: none
}

.page-head-dots.br {
   top: auto;
   bottom: 40px;
   right: auto;
   left: 50px;
   opacity: 0.5
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
   background: #050507;
   color: var(--paper);
   padding: 72px var(--gutter-x) 28px
}

.footer-inner {
   max-width: var(--max);
   margin: 0 auto
}

.footer-grid {
   display: grid;
   grid-template-columns: 1.4fr 1fr 1fr;
   gap: 40px;
   padding-bottom: 48px;
   border-bottom: 1px solid rgba(255, 255, 255, 0.1)
}

@media(max-width:840px) {
   .footer-grid {
      grid-template-columns: 1fr 1fr;
      gap: 32px
   }
}

@media(max-width:500px) {
   .footer-grid {
      grid-template-columns: 1fr
   }
}

.footer-brand {
   max-width: 300px
}

.footer-logo {
   font-family: var(--serif);
   font-size: 22px;
   font-weight: 500;
   letter-spacing: -0.01em;
   margin-bottom: 16px;
   display: flex;
   align-items: center;
   gap: 12px
}

.footer-logo-seal {
   width: auto;
   height: auto;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0
}

.footer-logo-seal img {
   width: auto;
   height: 70px;
   object-fit: contain;
   display: block;
   filter: invert(1)
}

.footer-brand p {
   font-size: 13.5px;
   color: rgba(255, 255, 255, 0.55);
   line-height: 1.65
}

.footer-col h5 {
   font-size: 11px;
   font-weight: 700;
   letter-spacing: 2.4px;
   text-transform: uppercase;
   color: var(--red);
   margin-bottom: 18px
}

.footer-col ul {
   list-style: none;
   display: grid;
   gap: 11px
}

.footer-col li a,
.footer-col li {
   font-size: 14px;
   color: rgba(255, 255, 255, 0.72);
   transition: color 0.2s
}

.footer-col li a:hover {
   color: var(--paper)
}

.footer-bottom {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding-top: 28px;
   font-size: 12px;
   color: rgba(255, 255, 255, 0.45);
   flex-wrap: wrap;
   gap: 16px
}

.footer-social {
   display: flex;
   gap: 10px
}

.footer-social a {
   width: 34px;
   height: 34px;
   display: flex;
   align-items: center;
   justify-content: center;
   border: 1px solid rgba(255, 255, 255, 0.2);
   transition: background 0.2s, border-color 0.2s
}

.footer-social a:hover {
   background: var(--red);
   border-color: var(--red)
}

.footer-social svg {
   width: 14px;
   height: 14px
}

.footer-built {
   font-size: 10.5px;
   letter-spacing: 1.4px;
   color: rgba(255, 255, 255, 0.38);
   text-transform: uppercase;
   font-weight: 600;
   transition: color 0.2s
}

.footer-built span {
   color: rgba(255, 255, 255, 0.7);
   transition: color 0.2s
}

.footer-built:hover {
   color: rgba(255, 255, 255, 0.6)
}

.footer-built:hover span {
   color: var(--paper)
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
   opacity: 0;
   transform: translateY(20px);
   transition: opacity 0.6s ease, transform 0.6s ease
}

.fade-up.in {
   opacity: 1;
   transform: translateY(0)
}

.fade-up.d1 {
   transition-delay: 0.08s
}

.fade-up.d2 {
   transition-delay: 0.16s
}

.fade-up.d3 {
   transition-delay: 0.24s
}
/* ============================================================
   MODAL
   ============================================================ */
.modal{
   position:fixed;
   inset:0;
   z-index:1000;
   display:flex;
   align-items:center;
   justify-content:center;
   padding:clamp(20px,4vw,48px);
   opacity:0;
   visibility:hidden;
   transition:opacity 0.3s ease,visibility 0.3s ease;
}

.modal.is-open{
   opacity:1;
   visibility:visible;
}

.modal-overlay{
   position:absolute;
   inset:0;
   background:rgba(0,0,0,0.72);
   backdrop-filter:blur(4px);
   -webkit-backdrop-filter:blur(4px);
   cursor:pointer;
}

.modal-dialog{
   position:relative;
   z-index:1;
   width:100%;
   max-width:620px;
   max-height:calc(100vh - 96px);
   overflow-y:auto;
   transform:translateY(16px) scale(0.98);
   transition:transform 0.3s cubic-bezier(0.2,0.8,0.2,1);
   /* Hide scrollbar visual clutter inside the modal */
   scrollbar-width:thin;
   scrollbar-color:rgba(255,255,255,0.2) transparent;
}

.modal.is-open .modal-dialog{
   transform:translateY(0) scale(1);
}

.modal-close{
   position:absolute;
   top:16px;
   right:16px;
   width:38px;
   height:38px;
   display:flex;
   align-items:center;
   justify-content:center;
   background:rgba(255,255,255,0.06);
   border:1px solid rgba(255,255,255,0.18);
   color:rgba(255,255,255,0.85);
   cursor:pointer;
   z-index:5;
   transition:background 0.2s,border-color 0.2s,color 0.2s,transform 0.3s;
}

.modal-close:hover{
   background:var(--red);
   border-color:var(--red);
   color:var(--paper);
   transform:rotate(90deg);
}

.modal-close svg{width:18px;height:18px}

body.modal-open{overflow:hidden}
