/* The ArchAI website pages (rebuilt from archai.io). Builds on styles.css. */

:root {
  --sage: #5f8a74;
  --sage-dark: #3f6553;
  --sage-pale: #e5eee8;
  --paper: #f5f4f1;
}

/* Header: normal on inner pages; floats over the hero on pages with body.has-hero */
.site-header .logo img { height: 60px; }
.site-header .logo-light { display: none; }
.main-nav { gap: 20px; }
.nav-group { position: relative; }
.nav-menu { position: absolute; top: 100%; left: -14px; min-width: 210px; background: var(--white); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,.14); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .15s; z-index: 1100; }
.nav-menu a { display: block; padding: 8px 16px; border: 0 !important; color: var(--ink) !important; font-weight: 600; font-size: 14px; }
.nav-menu a:hover { background: var(--orange-wash); }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { opacity: 1; visibility: visible; transform: none; }
.header-row { gap: 22px; }
.nav-toggle { display: none; background: var(--orange); border: 0; border-radius: var(--radius); width: 40px; height: 40px; padding: 11px 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 1px; }

body.has-hero .site-header { position: fixed; left: 16px; right: 16px; top: 14px; border: 0; border-radius: 6px; background: rgba(40, 40, 38, .55); backdrop-filter: blur(8px); transition: background .2s, top .2s; }
body.has-hero.scrolled .site-header { background: rgba(40, 40, 38, .92); top: 8px; }
body.has-hero .site-header .logo-dark { display: none; }
body.has-hero .site-header .logo-light { display: block; }
body.has-hero .main-nav > a, body.has-hero .nav-group > a { color: #f1f0ec; }
body.has-hero .main-nav > a:hover, body.has-hero .nav-group > a:hover { color: var(--white); }
body.has-hero .avatar { background: var(--orange); }

/* The header (Iris, 30 Nov): logo, three company links, then the shop's orange box on the right. */
.site-header .main-nav { margin-left: 18px; }
.header-shop { margin-left: auto; display: inline-flex; align-items: stretch; background: var(--orange); border-radius: var(--radius); overflow: hidden; flex: none; }
.header-shop a { display: inline-flex; align-items: center; gap: 2px; padding: 10px 16px; font: 600 14px/1.2 var(--body); color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-shop a:hover, .header-shop a.active { background: var(--orange-dark); }
.header-shop-account { border-left: 1px solid rgba(61, 61, 59, .25); }
.header-shop .beta-pill { background: rgba(255, 255, 255, .55); }
@media (max-width: 600px) {
  .site-header .logo img { height: 48px; }
  .header-row { gap: 10px; }
  .header-shop a { padding: 9px 10px; font-size: 13px; }
  .header-shop .beta-pill { display: none; }
}
@media (max-width: 1020px) {
  .nav-toggle { display: flex; order: 3; }
  .header-shop { order: 2; }
  .site-header .main-nav { margin-left: 0; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); box-shadow: 0 16px 30px rgba(0,0,0,.15); padding: 10px 24px 18px; border-radius: 0 0 6px 6px; }
  body.nav-open .main-nav { display: flex; }
  .main-nav > a, .nav-group > a { padding: 11px 0; border-bottom: 1px solid var(--light) !important; color: var(--ink) !important; }
  .nav-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 6px 14px; min-width: 0; }
  .nav-menu a { padding: 7px 0; font-weight: 400; }
}

/* Footer */
.site-footer { margin-top: 0; padding-top: 0; }
.footer-band { height: 180px; background: center/cover; filter: saturate(.9); }
.site-footer .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1.2fr; padding-top: 48px; }
/* The newsletter button: dark text on orange was unreadable among the footer's pale links (Iris, 30 Nov). */
.site-footer .btn-primary, .site-footer .btn-primary:hover { color: var(--white); }
.site-footer .footer-logo { filter: none; opacity: 1; height: 40px; }
.site-footer .footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-footer .footer-legal a { color: #a9a9a3; }
/* The shop page has only the legal line, slim, under the map. */
.shop-page .site-footer { padding: 12px 0; }
.shop-page .site-footer .footer-legal { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 960px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Heroes */
.page-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: var(--white); background: #2f3a33 center/cover; overflow: hidden; }
.page-hero.short { min-height: 56vh; }
.page-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,22,.35) 0%, rgba(20,24,22,.15) 40%, rgba(20,24,22,.7) 100%); }
.page-hero .wrap { position: relative; z-index: 1; padding-bottom: 72px; padding-top: 140px; width: 100%; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 72px); max-width: 15em; margin-bottom: 14px; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.page-hero .sub { font-size: clamp(17px, 1.6vw, 21px); max-width: 38em; opacity: .94; margin-bottom: 26px; }
.page-hero .hero-logo { height: 64px; width: auto; margin-bottom: 22px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--orange-pale); }
.btn-outline-light { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-sage { background: var(--sage-dark); color: var(--white); }
.btn-sage:hover { background: #2f4f40; }

/* Sections */
.s { padding: 88px 0; position: relative; overflow: hidden; }
.s-paper { background: var(--paper); }
.s-light { background: var(--light); }
.s-sage { background: var(--sage); color: var(--white); }
.s-sage h2, .s-sage h3 { color: var(--white); }
.s-dark { background: var(--ink); color: #ecece8; }
.s-dark h2 { color: var(--orange); }
.lead-text { font-size: 19px; line-height: 1.6; max-width: 46em; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.narrow { max-width: 820px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col.wide-left { grid-template-columns: 1.2fr 1fr; }
.two-col img, .two-col video { width: 100%; border-radius: 6px; }
.deco-diamond { position: absolute; width: 380px; height: 380px; transform: rotate(45deg); background: var(--orange-pale); opacity: .75; right: -150px; top: -60px; }
.deco-diamond.green { background: #cfe0b4; opacity: .6; }
@media (max-width: 900px) { .two-col, .two-col.wide-left { grid-template-columns: 1fr; gap: 28px; } .s { padding: 60px 0; } }
/* On phones the shapes would sit behind the text. */
@media (max-width: 700px) { .deco-diamond { display: none; } }

/* Product trio tiles (Habitats / Boundaries / Ponds) */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.trio a { text-decoration: none; display: block; }
.trio .trio-img { aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; background: var(--white) center/cover; box-shadow: var(--shadow); transition: transform .2s; }
.trio a:hover .trio-img { transform: translateY(-4px); }
.trio h3 { text-align: center; margin: 18px 0 8px; font-size: 22px; color: var(--sage-dark); }
.trio p { text-align: center; font-size: 14px; color: var(--ink-soft); max-width: 22em; margin: 0 auto; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

/* About / image / Portfolio row on the home page */
.triptych { display: grid; grid-template-columns: 1fr 1fr 1fr; min-height: 380px; }
.triptych > div { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.triptych .image { background: center/cover; position: relative; }
.triptych .image img { width: 110px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.triptych h3 { font-size: 28px; }
.arrow-link { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--orange); border-radius: 3px; color: var(--ink); text-decoration: none; font-weight: 700; margin-top: 10px; }
.arrow-link.sage { background: var(--sage); color: var(--white); }
@media (max-width: 860px) { .triptych { grid-template-columns: 1fr; } .triptych .image { min-height: 260px; } }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.info-card { background: var(--white); border-radius: 8px; padding: 26px 24px; box-shadow: var(--shadow); color: var(--ink); }
.info-card h3 { font-size: 18px; margin-bottom: 10px; }
.info-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }
/* The icons are the live site's SVGs, drawn in one colour through a mask, as on archai.io. */
.info-card .icon { display: block; width: 64px; height: 64px; margin-bottom: 14px; background: var(--sage); -webkit-mask: var(--icon) left center / contain no-repeat; mask: var(--icon) left center / contain no-repeat; }
.glass-card { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 22px; backdrop-filter: blur(4px); }
.glass-card h3 { font-size: 17px; margin-bottom: 8px; }
.glass-card p { font-size: 14px; margin: 0; opacity: .92; }
.photo-card { border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.08); }
.photo-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.photo-card .body { padding: 18px 4px 4px; }
.photo-card h3 { font-size: 20px; margin-bottom: 8px; }
.photo-card p { font-size: 14px; opacity: .9; margin: 0 0 6px; }
@media (max-width: 1000px) { .card-grid, .card-grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .card-grid, .card-grid.three, .card-grid.two { grid-template-columns: 1fr; } }

/* Numbered feature list */
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; margin-top: 28px; }
.feature-list > div { border-top: 3px solid var(--orange); padding-top: 16px; }
.feature-list h3 { font-size: 19px; margin-bottom: 8px; }
.feature-list p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.s-sage .feature-list > div { border-top-color: #cfe0b4; }
.s-sage .feature-list p { color: rgba(255,255,255,.88); }
@media (max-width: 760px) { .feature-list { grid-template-columns: 1fr; } }

/* Buy online band */
.buy-band { background: linear-gradient(120deg, var(--ink), #2a2a28); color: #ececea; border-radius: 10px; padding: 40px 44px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.buy-band h2 { color: var(--orange); font-size: 28px; }
.buy-band ul { list-style: none; padding: 0; margin: 14px 0 0; }
.buy-band li { padding: 4px 0 4px 22px; position: relative; font-size: 15px; }
.buy-band li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px; background: var(--orange); transform: rotate(45deg); }
.buy-band .actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.buy-band .price-note { font-size: 13px; color: #b8b8b2; }
@media (max-width: 860px) { .buy-band { grid-template-columns: 1fr; padding: 30px 26px; } }

/* Logos */
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px 64px; margin-top: 32px; }
/* The partner logos are white or grey versions made for a dark band: show them all in dark grey. */
.logo-row img { height: 64px; width: auto; object-fit: contain; filter: brightness(0); opacity: .68; }
/* Partner logos have very different shapes (National Trust 7.4:1, Natural England 2.3:1), so the same
   height made the wide ones look far bigger (Iris, 30 Nov). Each is sized to about the same area. */
.partner-logos img[alt="Forestry Commission"] { height: 47px; }
.partner-logos img[alt="National Trust"] { height: 40px; }
.partner-logos img[alt="Natural England"] { height: 61px; }
.partner-logos img[alt="University of Southampton"] { height: 50px; }
@media (max-width: 600px) {
  .partner-logos img[alt="Forestry Commission"] { height: 38px; }
  .partner-logos img[alt="National Trust"] { height: 33px; }
  .partner-logos img[alt="Natural England"] { height: 50px; }
  .partner-logos img[alt="University of Southampton"] { height: 41px; }
}
.logo-row a { display: block; }
.press { padding: 48px 0 56px; }
.press h3 { font-size: 22px; }
.press .logo-row { margin-top: 20px; }
.press .logo-row img { height: 40px; opacity: .85; }
@media (max-width: 600px) { .logo-row { gap: 28px 40px; } .logo-row img { height: 44px; } .press .logo-row img { height: 30px; } }

/* Before / after slider */
.compare { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 16/10; user-select: none; box-shadow: var(--shadow); background: var(--light); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 50%); }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--white); pointer-events: none; box-shadow: 0 0 8px rgba(0,0,0,.4); }
.compare .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: var(--white); display: grid; place-items: center; color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.compare .tag { position: absolute; bottom: 12px; background: rgba(40,40,38,.8); color: var(--white); font-size: 12px; padding: 4px 9px; border-radius: 3px; pointer-events: none; }
.compare .tag.left { left: 12px; }
.compare .tag.right { right: 12px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.team-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.team-card img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.team-card .body { padding: 20px 22px 24px; }
.team-card .role { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--orange-dark); font-weight: 700; }
.team-card h3 { font-size: 21px; margin: 6px 0 10px; }
.team-card p { font-size: 14px; color: var(--ink-soft); }
.team-card a { font-size: 13px; font-weight: 700; color: var(--blue); }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.values p { background: var(--white); border-left: 3px solid var(--orange); padding: 18px; margin: 0; font-size: 15px; border-radius: 0 6px 6px 0; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }

/* Articles (case studies, blog) */
.article { max-width: 808px; margin: 0 auto; padding: 0 24px; }
.article .meta { font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.article h1 { font-size: clamp(30px, 4vw, 46px); text-transform: none; letter-spacing: .02em; }
.article h3, .article .article-section { font-size: 24px; margin-top: 40px; text-transform: none; letter-spacing: .04em; }
.article p { font-size: 17px; line-height: 1.7; }
.article figure { margin: 30px 0; }
.article figure img { width: 100%; border-radius: 6px; }
.article .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0; }
.article .gallery img { border-radius: 6px; width: 100%; }
.callout { background: var(--orange-wash); border-left: 4px solid var(--orange); padding: 16px 20px; border-radius: 0 6px 6px 0; font-size: 16px; }
.placeholder-note { background: #fff4d6; border: 1px dashed #e0b44a; padding: 14px 18px; border-radius: 6px; font-size: 14px; color: #6b5117; margin: 20px 0; }
.terms h2 { font-size: 20px; letter-spacing: 1px; margin: 32px 0 10px; }
.terms dt { font-weight: 600; margin-top: 10px; }
.terms dd { margin: 2px 0 0; }
.terms ul { padding-left: 22px; }
.terms li { font-size: 17px; line-height: 1.7; margin: 6px 0; }
.table-scroll { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin: 12px 0 18px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid #dcdad3; }
.legal-table th { font-weight: 600; }

/* Project and post cards */
.project-card { display: block; text-decoration: none; background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.project-card:hover { transform: translateY(-4px); }
.project-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.project-card .body { padding: 20px 22px 24px; }
.project-card h2 { font-size: 21px; margin: 4px 0 0; text-transform: none; letter-spacing: .04em; }
.project-card .meta { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }

/* Forms */
.form-card { background: var(--white); border-radius: 10px; padding: 34px; box-shadow: 0 10px 40px rgba(0,0,0,.08); }
.form-card h2 { font-size: 26px; }
.site-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.site-form .full { grid-column: 1 / -1; }
.site-form textarea { min-height: 130px; resize: vertical; }
.site-form .btn { justify-self: start; }
.form-done { text-align: center; padding: 30px 10px; }
.form-done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--sage); color: var(--white); display: grid; place-items: center; font-size: 28px; margin: 0 auto 14px; }
@media (max-width: 640px) { .site-form { grid-template-columns: 1fr; } .form-card { padding: 24px; } }

.split-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 72px); }
.split-hero .image { background: center/cover; position: relative; }
.split-hero .image .caption { position: absolute; left: 24px; bottom: 20px; color: var(--white); font-size: 13px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.split-hero .content { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; background: var(--paper); }
@media (max-width: 900px) { .split-hero { grid-template-columns: 1fr; } .split-hero .image { min-height: 280px; } .split-hero .content { padding: 40px 24px; } }
.s-sage .info-card h3 { color: var(--ink); }
