/* =================================================================
   Ayrshire IT Ltd — static site (WordPress-free)
   Light theme, brand orange #F98700. No frameworks, no build step.
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --orange: #F98700;
  --orange-dark: #e07700;
  --orange-soft: #fff3e6;
  --ink: #20262e;
  --slate: #5d6773;
  --muted: #8a939e;
  --white: #ffffff;
  --paper: #f6f8fa;
  --paper-2: #eef1f5;
  --dark: #232a32;
  --darker: #1a2027;
  --line: #e4e8ee;
  --line-dark: rgba(255,255,255,0.12);

  --shadow-sm: 0 2px 10px rgba(32,38,46,0.06);
  --shadow-md: 0 14px 38px rgba(32,38,46,0.12);
  --shadow-lg: 0 28px 64px rgba(32,38,46,0.20);

  --r: 10px;
  --r-lg: 16px;
  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 64px);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); color: var(--ink); background: var(--white);
  line-height: 1.7; font-size: 16.5px; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.accent { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-display); font-weight: 600; font-size: 0.96rem;
  padding: 0.85em 1.7em; border-radius: 6px; border: 0; cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 8px 22px rgba(249,135,0,0.32); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(249,135,0,0.42); }
.btn-outline { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-outline:hover { background: var(--orange); color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn .arrow { transition: transform 0.22s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--darker); color: var(--muted); font-size: 0.85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 1rem; }
.topbar a { color: #c5cdd6; transition: color 0.2s; }
.topbar a:hover { color: var(--orange); }
.topbar .tb-left { display: flex; gap: 1.5rem; }
.topbar .tb-left span { display: inline-flex; align-items: center; gap: 0.45em; }
.topbar .tb-left svg { width: 14px; height: 14px; color: var(--orange); }
.topbar .tb-right { display: flex; gap: 1.2rem; }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 0.15rem; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  padding: 0.7rem 0.95rem; border-radius: 6px; display: inline-flex; align-items: center; gap: 0.35em;
  transition: color 0.2s, background 0.2s; text-transform: uppercase; letter-spacing: 0.02em;
}
.nav-links > li > a:hover, .nav-links > li > a[aria-current="page"] { color: var(--orange); }
.has-sub > a::after { content: ""; width: 5px; height: 5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); display: inline-block; opacity: 0.6; }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 180px;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.45rem; list-style: none; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: 0.2s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; color: var(--slate); padding: 0.55rem 0.8rem; border-radius: 6px; font-size: 0.88rem; font-weight: 500; }
.submenu a:hover { background: var(--orange-soft); color: var(--orange); }
.nav-cta { display: flex; align-items: center; gap: 0.7rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg);} .nav-toggle.open span:nth-child(2){opacity:0;} .nav-toggle.open span:nth-child(3){transform: translateY(-7px) rotate(-45deg);}

/* ---------- Hero ---------- */
.hero { position: relative; background: #eef2f6 url('hero-bg.jpg') center/cover no-repeat; }
.hero::before { content:""; position:absolute; inset:0; background: linear-gradient(100deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 42%, rgba(255,255,255,0.15) 78%, rgba(255,255,255,0) 100%); }
.hero-inner { position: relative; padding: clamp(70px,12vw,150px) 0; max-width: 640px; }
.eyebrow { display:inline-flex; align-items:center; gap:0.5em; font-family:var(--font-display); font-size:0.76rem; font-weight:700; letter-spacing:0.16em; text-transform:uppercase; color:var(--orange); margin-bottom:1.2rem; }
.eyebrow .dot { width:7px; height:7px; border-radius:50%; background:var(--orange); }
.hero h1 { font-size: clamp(2.2rem,5.5vw,3.7rem); font-weight:800; color:var(--ink); }
.hero p.lead { font-size: clamp(1.05rem,2vw,1.25rem); color:var(--slate); margin:1.3rem 0 2.2rem; max-width:520px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:0.9rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(60px,8vw,100px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(2.4rem,5vw,3.4rem); }
.section-head.center { margin-inline:auto; text-align:center; }
.section-head .eyebrow { margin-bottom: 0.8rem; }
.section-head h2 { font-size: clamp(1.8rem,4vw,2.7rem); color: var(--ink); }
.section-head h2 .accent { color: var(--orange); }
.section-head p { color: var(--slate); margin-top: 0.9rem; font-size: 1.05rem; }
.bar { width: 64px; height: 4px; background: var(--orange); border-radius: 4px; margin-top: 1.1rem; }
.section-head.center .bar { margin-inline: auto; }

/* ---------- Numbered service cards (home) ---------- */
.card-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 2.4rem 2.1rem 2.1rem; box-shadow: var(--shadow-sm); position: relative;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.card .num { position:absolute; top:1.4rem; right:1.6rem; font-family:var(--font-display); font-weight:800; font-size:2.6rem; color:var(--paper-2); line-height:1; }
.card .ic { width:60px; height:60px; border-radius:14px; display:grid; place-items:center; background: var(--orange-soft); color: var(--orange); margin-bottom:1.3rem; }
.card .ic svg { width:30px; height:30px; }
.card h3 { font-size:1.35rem; margin-bottom:0.7rem; }
.card p { color: var(--slate); font-size:0.97rem; }
.card .more { display:inline-flex; align-items:center; gap:0.4em; margin-top:1.2rem; color:var(--orange); font-family:var(--font-display); font-weight:600; font-size:0.9rem; }
.card:hover .more .arrow { transform: translateX(4px); }
.card .more .arrow { transition: transform 0.22s; }

/* ---------- Solutions band (dark) ---------- */
.band-dark { background: var(--dark); color: var(--white); position: relative; }
.band-dark .section-head h2 { color: var(--white); }
.band-dark .section-head p { color: #b8c0ca; }
.solution-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: 1.5rem; }
.solution { background: rgba(255,255,255,0.04); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: 2rem; transition: background 0.3s, transform 0.3s, border-color 0.3s; }
.solution:hover { background: rgba(255,255,255,0.07); border-color: var(--orange); transform: translateY(-5px); }
.solution .ic { width:54px; height:54px; border-radius:13px; display:grid; place-items:center; background: rgba(249,135,0,0.16); color: var(--orange); margin-bottom:1.2rem; }
.solution .ic svg { width:27px; height:27px; }
.solution h3 { font-size:1.25rem; color:var(--white); margin-bottom:0.7rem; }
.solution p { color:#b8c0ca; font-size:0.95rem; }

/* ---------- Full services grid ---------- */
.svc-list { display:grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 1rem; }
.svc-item { display:flex; align-items:center; gap:1rem; padding:1.2rem 1.3rem; background:var(--white); border:1px solid var(--line); border-radius:var(--r); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.svc-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.svc-item .ic { flex:none; width:44px; height:44px; border-radius:11px; display:grid; place-items:center; background:var(--orange-soft); color:var(--orange); }
.svc-item .ic svg { width:22px; height:22px; }
.svc-item span.lbl { font-family:var(--font-display); font-weight:600; font-size:0.97rem; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--dark) url('hero-bg.jpg') center/cover; position: relative; color: var(--white); }
.page-hero::before { content:""; position:absolute; inset:0; background: linear-gradient(100deg, rgba(26,32,39,0.92), rgba(26,32,39,0.72)); }
.page-hero .wrap { position: relative; padding: clamp(54px,8vw,88px) 0; }
.breadcrumb { display:flex; gap:0.5em; align-items:center; color:#c5cdd6; font-size:0.85rem; margin-bottom:1rem; }
.breadcrumb a:hover { color:var(--orange); }
.breadcrumb .sep { opacity:0.5; }
.page-hero h1 { font-size: clamp(2rem,5vw,3.2rem); font-weight:800; }
.page-hero p { color:#c5cdd6; margin-top:0.9rem; max-width:620px; font-size:1.08rem; }

/* ---------- Prose / About ---------- */
.prose { max-width:760px; }
.prose p { color:var(--slate); margin-bottom:1.3rem; font-size:1.07rem; }
.prose p strong { color:var(--ink); }
.feature-row { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:1.4rem; margin-top:3rem; }
.feature { padding:1.7rem; border:1px solid var(--line); border-radius:var(--r); background:var(--white); box-shadow: var(--shadow-sm); }
.feature .ic { width:48px; height:48px; border-radius:12px; display:grid; place-items:center; background:var(--orange-soft); color:var(--orange); margin-bottom:1rem; }
.feature .ic svg { width:24px; height:24px; }
.feature h3 { font-size:1.1rem; margin-bottom:0.5rem; }
.feature p { color:var(--slate); font-size:0.94rem; }

/* ---------- Contact ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items:start; }
.contact-info .lead { color:var(--slate); margin-bottom:1.8rem; font-size:1.06rem; }
.info-block { display:flex; gap:1rem; padding:1.25rem 0; border-bottom:1px solid var(--line); }
.info-block:last-of-type { border-bottom:0; }
.info-block .ic { flex:none; width:48px; height:48px; border-radius:12px; display:grid; place-items:center; background:var(--orange-soft); color:var(--orange); }
.info-block .ic svg { width:23px; height:23px; }
.info-block h4 { font-size:0.76rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--muted); font-family:var(--font-display); margin-bottom:0.25rem; }
.info-block a, .info-block p { color:var(--ink); font-size:1.02rem; font-weight:500; }
.info-block a:hover { color:var(--orange); }
.contact-card { background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg); padding: clamp(1.6rem,4vw,2.4rem); box-shadow: var(--shadow-md); }
.contact-card h3 { font-size:1.4rem; margin-bottom:0.4rem; }
.contact-card .sub { color:var(--slate); margin-bottom:1.7rem; font-size:0.97rem; }
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap:1rem; }
.field { margin-bottom:1.05rem; }
.field label { display:block; font-size:0.8rem; font-weight:600; font-family:var(--font-display); margin-bottom:0.4rem; }
.field input, .field textarea { width:100%; font-family:var(--font-body); font-size:0.98rem; color:var(--ink); padding:0.8rem 1rem; border:1px solid var(--line); border-radius:8px; background:var(--paper); transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field textarea:focus { outline:none; border-color:var(--orange); box-shadow:0 0 0 3px rgba(249,135,0,0.15); background:var(--white); }
.field textarea { resize:vertical; min-height:120px; }
.form-note { font-size:0.82rem; color:var(--muted); margin-top:0.8rem; }
.map-embed { margin-top: clamp(2.5rem,5vw,4rem); border-radius:var(--r-lg); overflow:hidden; border:1px solid var(--line); box-shadow:var(--shadow-sm); }
.map-embed iframe { width:100%; height:380px; border:0; display:block; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); color: var(--white); }
.cta-band .wrap { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1.5rem; padding-block: clamp(46px,7vw,68px); }
.cta-band h2 { font-size: clamp(1.5rem,3.5vw,2.3rem); max-width:640px; color:var(--white); }
.cta-band p { margin-top:0.5rem; font-size:1.04rem; color: rgba(255,255,255,0.9); max-width:560px; }
.cta-band .btn-dark { background:var(--white); color:var(--orange); }
.cta-band .btn-dark:hover { background:var(--darker); color:var(--white); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--darker); color:#9aa3ad; padding: clamp(54px,7vw,76px) 0 1.8rem; }
.footer-top { display:grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap:2rem; padding-bottom:2.8rem; border-bottom:1px solid rgba(255,255,255,0.1); }
.footer-brand img { height:34px; margin-bottom:1.1rem; }
.footer-brand p { font-size:0.93rem; max-width:320px; }
.footer-col h4 { font-family:var(--font-display); color:var(--white); font-size:0.8rem; letter-spacing:0.12em; text-transform:uppercase; margin-bottom:1.05rem; }
.footer-col ul { list-style:none; } .footer-col li { margin-bottom:0.55rem; }
.footer-col a { color:#9aa3ad; font-size:0.93rem; } .footer-col a:hover { color:var(--orange); }
.footer-bottom { display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; align-items:center; padding-top:1.8rem; font-size:0.86rem; }

/* ---------- Reveal ---------- */
.js .reveal { opacity:0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity:1; transform:none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) { .footer-top { grid-template-columns:1fr 1fr; } .contact-grid { grid-template-columns:1fr; } }
@media (max-width: 860px) {
  .nav-toggle { display:flex; }
  .topbar .tb-left span:nth-child(2){ display:none; }
  .nav-links { position:fixed; inset:84px 0 auto 0; flex-direction:column; align-items:stretch; background:var(--white); padding:1rem var(--gut) 1.5rem; gap:0.1rem; border-bottom:1px solid var(--line); transform:translateY(-130%); transition:transform 0.35s ease; box-shadow:var(--shadow-lg); }
  .nav-links.open { transform:translateY(0); }
  .nav-links > li > a { padding:0.85rem 0.6rem; font-size:1rem; }
  .submenu { position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:0; padding:0 0 0 1rem; }
  .has-sub > a::after { display:none; }
  .nav-cta .btn-primary { display:none; }
}
@media (max-width:560px){ .form-row{grid-template-columns:1fr;} .footer-top{grid-template-columns:1fr;} .cta-band .wrap{flex-direction:column; align-items:flex-start;} }
@media (prefers-reduced-motion: reduce){ *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto;} .reveal{opacity:1;transform:none;} }
