:root {
  --bg: #09100e;
  --bg-soft: #0e1714;
  --panel: #121d19;
  --panel-2: #16231e;
  --text: #f4f7f5;
  --muted: #aab7b0;
  --line: rgba(255,255,255,.1);
  --green: #61d095;
  --green-bright: #77e5a9;
  --green-dark: #173e2b;
  --max: 1180px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(9,16,14,.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.2rem; letter-spacing: -.02em; }
.brand strong { color: var(--green); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid rgba(119,229,169,.5);
  border-radius: 11px;
  color: var(--green-bright);
  background: linear-gradient(145deg, rgba(97,208,149,.14), rgba(97,208,149,.03));
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: -.04em;
}
.main-nav { display: flex; align-items: center; gap: 28px; font-size: .94rem; color: #dbe4df; }
.main-nav a:hover { color: var(--green-bright); }
.nav-cta { padding: 10px 17px; border: 1px solid rgba(119,229,169,.45); border-radius: 999px; }
.menu-toggle { display: none; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; }

.hero {
  max-width: var(--max);
  min-height: 690px;
  margin: auto;
  padding: 100px 24px 80px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 72px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  font-size: .74rem;
}
.hero h1, .section-heading h2, .hosting-copy h2, .about-section h2, .contact-panel h2 {
  margin: 0;
  letter-spacing: -.045em;
  line-height: 1.04;
}
.hero h1 { font-size: clamp(3rem, 6vw, 5.8rem); max-width: 850px; }
.hero h1 span { color: var(--green); }

.hero h1 .hero-tagline {
  display: inline-block;
  font-size: .82em;
  line-height: 1.08;
}

.hero-copy { max-width: 700px; margin: 28px 0; color: var(--muted); font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 750;
  transition: .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #06100b; background: var(--green-bright); }
.button-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.full { width: 100%; }
.hero-points { display: flex; flex-wrap: wrap; gap: 11px 22px; margin-top: 28px; color: #c6d2cc; font-size: .9rem; }

.hero-card {
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(119,229,169,.2);
  border-radius: 26px;
  background: linear-gradient(145deg, #17251f, #0d1512);
  box-shadow: 0 35px 90px rgba(0,0,0,.35);
  transform: rotate(1.5deg);
}
.browser-bar { display: flex; align-items: center; gap: 7px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #101815; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #4b5d54; }
.browser-bar span { margin-left: 9px; color: #7f9188; font-size: .72rem; }
.browser-content {
  min-height: 370px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 50px;
  background:
    radial-gradient(circle at 80% 20%, rgba(97,208,149,.18), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.03), transparent);
}
.mini-label { color: var(--green); font-size: .7rem; letter-spacing: .2em; }
.browser-content h2 { max-width: 390px; margin: 16px 0; font-size: 2.7rem; line-height: 1; letter-spacing: -.04em; }
.browser-content p { color: var(--muted); }
.mini-button { margin-top: 18px; padding: 9px 15px; color: #07110c; background: var(--green); border-radius: 7px; font-size: .8rem; font-weight: 800; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 13px;
  padding: 24px;
  border-block: 1px solid var(--line);
  color: #87968f;
  background: #0b1310;
  font-size: .86rem;
}
.trust-strip p { margin: 0 18px 0 0; color: #b7c3bd; }
.trust-strip strong { color: #dce5e0; }

.section { max-width: var(--max); margin: auto; padding: 105px 24px; }
.section-alt {
  max-width: none;
  padding-inline: max(24px, calc((100vw - var(--max)) / 2));
  background: var(--bg-soft);
  border-block: 1px solid rgba(255,255,255,.05);
}
.section-heading { max-width: 720px; margin-bottom: 50px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2, .hosting-copy h2, .about-section h2, .contact-panel h2 { font-size: clamp(2.25rem, 4vw, 4rem); }
.section-heading > p:last-child, .hosting-copy > p, .about-copy > p, .contact-panel > p { color: var(--muted); font-size: 1.06rem; }

.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.portfolio-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.portfolio-visual { min-height: 300px; position: relative; background-size: cover; background-position: center; }
.drone-visual { background-image: url("images/cotswold-drone-pilots-website.jpg"); }
.wood-visual { background-image: url("images/cotswold-woodshed-website.jpg"); }
.portfolio-visual:not(.screenshot-visual)::after {
  content: "";
  position: absolute;
  inset: 18% 10%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.06) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(255,255,255,.05) 50%, transparent 50.2%);
}
.screenshot-visual {
  background-size: cover;
  background-position: center top;
}
.screenshot-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,10,8,.88), rgba(5,10,8,.10) 42%, transparent 62%);
  pointer-events: none;
}
.portfolio-overlay { position: absolute; z-index: 2; left: 28px; bottom: 27px; display: flex; flex-direction: column; }
.portfolio-overlay span { color: #aebcb5; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.portfolio-overlay strong { font-size: 1.5rem; }
.portfolio-body { padding: 31px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.card-kicker { margin: 0 0 7px; color: var(--green); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.portfolio-body h3 { margin: 0; font-size: 1.7rem; }
.portfolio-body p:not(.card-kicker) { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: #b9c6bf; font-size: .73rem; }
.text-link { color: var(--green-bright); font-weight: 750; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.service-card { min-height: 245px; padding: 27px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.025); }
.service-number { color: var(--green); font-size: .75rem; font-weight: 800; }
.service-card h3 { margin: 36px 0 8px; font-size: 1.35rem; }
.service-card p { margin: 0; color: var(--muted); font-size: .94rem; }

.pricing-section { max-width: 1240px; }
.launch-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px 28px;
  flex-wrap: wrap;
  margin-bottom: 25px;
  padding: 13px 20px;
  border: 1px solid rgba(119,229,169,.3);
  border-radius: 12px;
  color: #c9d7d0;
  background: rgba(97,208,149,.07);
}
.launch-banner strong { color: var(--green-bright); letter-spacing: .12em; font-size: .75rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.price-card { position: relative; padding: 30px 24px 24px; border: 1px solid var(--line); border-radius: 19px; background: var(--panel); }
.price-card.popular { border-color: rgba(119,229,169,.55); box-shadow: 0 18px 55px rgba(0,0,0,.18); }
.popular-badge { position: absolute; top: -12px; right: 18px; padding: 5px 10px; border-radius: 999px; color: #07110c; background: var(--green-bright); font-size: .7rem; font-weight: 900; }
.price-name { margin: 0; color: var(--green); font-weight: 800; }
.price-card h3 { margin: 12px 0 0; font-size: 3rem; line-height: 1; }
.price-card h3 small { font-size: .95rem; color: #c6d1cc; }
.price-note { margin: 8px 0 23px; color: #7f9087; font-size: .78rem; }
.price-card ul { min-height: 235px; padding: 0; margin: 0 0 25px; list-style: none; color: #c5d0ca; font-size: .9rem; }
.price-card li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.price-card li::before { content: "✓"; margin-right: 8px; color: var(--green); }
.pricing-smallprint { max-width: 850px; margin: 25px auto 0; text-align: center; color: #73837b; font-size: .78rem; }

.hosting-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hosting-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; color: #c4d0ca; font-size: .9rem; }
.hosting-features span::first-letter { color: var(--green); }
.hosting-prices { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.hosting-prices div { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 19px 23px; border-bottom: 1px solid var(--line); }
.hosting-prices div span { color: #c3cec8; }
.hosting-prices strong { color: var(--green-bright); font-size: 1.3rem; }
.hosting-prices small { color: #809088; font-size: .7rem; }
.hosting-prices p { margin: 0; padding: 17px 23px; color: #77877f; font-size: .75rem; }

.about-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.about-copy { max-width: 650px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.stats div { padding: 19px; border: 1px solid var(--line); border-radius: 14px; }
.stats strong { display: block; color: var(--green-bright); font-size: 1.7rem; }
.stats span { color: #8fa098; font-size: .77rem; }

.contact-section { padding-top: 80px; padding-bottom: 100px; }
.contact-panel {
  overflow: hidden;
  position: relative;
  padding: 65px;
  border: 1px solid rgba(119,229,169,.25);
  border-radius: 28px;
  background: radial-gradient(circle at 90% 20%, rgba(97,208,149,.18), transparent 32%), var(--panel);
}
.contact-panel > p { max-width: 680px; }
.contact-actions { margin-top: 28px; }
.contact-note { margin-top: 18px !important; font-size: .84rem !important; }

footer {
  max-width: var(--max);
  margin: auto;
  padding: 45px 24px 60px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 30px;
  border-top: 1px solid var(--line);
  color: #809088;
  font-size: .82rem;
}
.footer-brand { color: var(--text); }
footer p { margin: 0; }
.copyright { grid-column: 2; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 45px; padding-top: 75px; }
  .hero-card { max-width: 700px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .hosting-section, .about-section { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 720px) {
  .site-header { min-height: 68px; padding-inline: 18px; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 12px;
    right: 12px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #101916;
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px; }
  .nav-cta { border-radius: 8px; }

  .hero { min-height: auto; padding: 65px 18px 60px; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  .hero-copy { font-size: 1.04rem; }
  .hero-actions .button { width: 100%; }
  .hero-card { min-height: 340px; transform: none; }
  .browser-content { min-height: 292px; padding: 30px; }
  .browser-content h2 { font-size: 2.15rem; }
  .trust-strip p { width: 100%; margin: 0; text-align: center; }

  .section, .section-alt { padding: 75px 18px; }
  .section-heading { margin-bottom: 34px; }
  .portfolio-grid, .services-grid, .pricing-grid { grid-template-columns: 1fr; }
  .portfolio-visual { min-height: 280px; }
  .price-card ul { min-height: auto; }
  .hosting-features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .contact-panel { padding: 38px 25px; }
  .contact-actions .button { width: 100%; }
  footer { grid-template-columns: 1fr; }
  .copyright { grid-column: 1; }
}


/* Cotswold Digital header logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand-logo img {
  display: block;
  width: 230px;
  max-width: 32vw;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 720px) {
  .brand-logo img {
    width: 180px;
    max-width: 58vw;
    height: 50px;
  }
}


/* Equal-format portfolio cards */
.portfolio-grid {
  align-items: stretch;
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.portfolio-visual {
  min-height: 320px;
  flex: 0 0 320px;
}
.portfolio-body {
  flex: 1;
}
.portfolio-body > div:first-child {
  flex: 1;
}
