
/*
Theme Name: Gryphon Thom Dispatching
Version: 1.0.0
Requires PHP: 7.4
*/

:root{
  color-scheme:dark;
  --navy:#101c30;
  --ink:#09111e;
  --gold:#eec27b;
  --paper:#fbf6ed;
  --muted:#bdc8d9;
  --line:#34445b
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font:400 17px/1.6 'DM Sans',system-ui,sans-serif
}

a{color:inherit}
img{max-width:100%;height:auto;display:block}

.wrap{
  width:min(1310px,calc(100% - 30px));
  margin-inline:auto
}

header{
  border-bottom:1px solid var(--line);
  background:#0c1728
}

.bar,nav,.actions{
  display:flex;
  align-items:center;
  gap:24px;
  flex-wrap:wrap
}

.bar{
  justify-content:space-between;
  min-height:82px;
  padding-block:12px
}

.brand{
  text-decoration:none;
  font-weight:800;
  letter-spacing:.01em;
  line-height:1.18
}

.brand span{
  display:block;
  color:var(--gold);
  font-size:.72em;
  letter-spacing:.17em;
  text-transform:uppercase;
  margin-top:4px
}

nav a{
  text-decoration:none;
  font-size:.91rem
}

.button,button{
  display:inline-block;
  background:var(--gold);
  color:#151b26;
  border:1px solid var(--gold);
  border-radius:4px;
  padding:11px 15px;
  font:700 .91rem 'DM Sans',system-ui,sans-serif;
  text-decoration:none;
  cursor:pointer
}

.button.alt{
  background:transparent;
  color:var(--paper);
  border-color:#64728a
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline:3px solid #fff;
  outline-offset:4px
}

/* HERO */

.hero{
  background:radial-gradient(
    ellipse at 75% 40%,
    #294467 0%,
    #14233b 43%,
    #0a1424 77%
  );
  overflow:hidden
}

.hero-grid{
  min-height:540px;
  display:grid;
  grid-template-columns:38% 62%;
  align-items:center;
  gap:0;
  padding-block:36px
}

.hero-grid > :first-child{
  position:relative;
  z-index:2;
  max-width:340px
}

.hero-grid > :last-child{min-width:0}

.hero img{
  width:100%;
  max-width:none;
  filter:drop-shadow(0 22px 25px #070d1790)
}

.kicker{
  color:var(--gold);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.15em;
  font-size:.77rem;
  margin:0 0 12px
}

h1,h2,h3{
  font-family:'Barlow Condensed','Arial Narrow',system-ui,sans-serif;
  line-height:.99;
  margin:0 0 16px
}

h1{
  font-size:clamp(2.4rem,4.2vw,4.1rem);
  text-transform:uppercase;
  letter-spacing:-.025em
}

h1 span{
  color:var(--gold);
  display:block
}

h2{font-size:clamp(2.5rem,5vw,4rem)}
h3{font-size:1.75rem}
p{margin:0 0 18px}

.hero p:not(.kicker),
.muted{
  color:var(--muted);
  max-width:52ch
}

/* HERO TEXT OVERLAY */

.hero .hero-content,
.hero .hero-text,
.hero .hero-copy,
.hero .slide-content,
.hero .slide-caption,
.hero .hero-overlay{
  max-width:310px;
  padding:18px 20px
}

.hero .hero-content h1,
.hero .hero-text h1,
.hero .hero-copy h1,
.hero .slide-content h1,
.hero .slide-caption h1,
.hero .hero-overlay h1{
  font-size:clamp(1.9rem,2.6vw,2.35rem);
  line-height:1.05;
  margin-bottom:10px
}

.hero .hero-content p,
.hero .hero-text p,
.hero .hero-copy p,
.hero .slide-content p,
.hero .slide-caption p,
.hero .hero-overlay p{
  font-size:.85rem;
  line-height:1.45;
  margin-bottom:12px
}

/* SECTIONS */

section{padding-block:60px}

#services{
  background:#0d192b;
  border:1px solid var(--line)
}

.cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:28px
}

.card{
  border-top:2px solid var(--gold);
  background:#16263c;
  padding:24px
}

.card p{
  margin:0;
  color:var(--muted)
}

/* CONTACT */

.contact{
  display:grid;
  grid-template-columns:1fr 1.12fr;
  gap:48px;
  align-items:start
}

.map{
  width:100%;
  height:300px;
  border:1px solid var(--line);
  border-radius:6px;
  margin-top:10px;
  background:var(--navy)
}

form{
  background:var(--navy);
  padding:24px;
  border:1px solid var(--line);
  border-radius:6px
}

.fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px
}

label{
  display:block;
  font-size:.89rem;
  font-weight:700;
  margin-bottom:14px
}

input,textarea{
  display:block;
  width:100%;
  margin-top:5px;
  background:#0a1526;
  color:var(--paper);
  font:inherit;
  border:1px solid #607089;
  border-radius:4px;
  padding:11px
}

textarea{resize:vertical}

.notice{
  border:1px solid var(--gold);
  padding:12px;
  color:var(--paper)
}

.trap{
  position:absolute;
  left:-10000px;
  width:1px;
  height:1px;
  overflow:hidden
}

/* FOOTER */

footer{
  border-top:1px solid var(--line);
  padding:24px 0;
  color:var(--muted);
  font-size:.9rem
}

/* Springfield seal styling */
.springfield-seal{
  width:55px;
  height:55px;
  object-fit:contain;
  flex-shrink:0
}

/* WIDER FRAMED WEBSITE SECTIONS */

body > section,
body > .hero,
main > section,
main > .hero,
#page > section,
#page > .hero,
#page > main > section,
#page > main > .hero{
  width:calc(100% - 30px);
  max-width:1350px;
  margin:24px auto;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden
}

section > .wrap{
  max-width:1310px
}

/* TABLET AND MOBILE */

@media(max-width:760px){

  .hero-grid,
  .contact{
    grid-template-columns:1fr;
    gap:24px
  }

  .hero-grid{
    padding-block:36px;
    min-height:0
  }

  .hero-grid > :first-child{
    max-width:100%
  }

  .hero img{
    width:min(100%,460px);
    margin:auto
  }

  .cards{
    grid-template-columns:1fr
  }

  section{padding-block:48px}

  body > section,
  body > .hero,
  main > section,
  main > .hero,
  #page > section,
  #page > .hero,
  #page > main > section,
  #page > main > .hero{
    width:calc(100% - 20px);
    margin:14px auto;
    border-radius:8px
  }

  .wrap{
    width:calc(100% - 24px)
  }

  .hero .hero-content,
  .hero .hero-text,
  .hero .hero-copy,
  .hero .slide-content,
  .hero .slide-caption,
  .hero .hero-overlay{
    max-width:100%;
    padding:18px
  }
}

@media(max-width:420px){

  .fields{
    grid-template-columns:1fr;
    gap:0
  }

  .bar,nav,.actions{
    gap:12px
  }
}

