/* ============================================================
   Access Energy Group — Stylesheet
   Aesthetic: editorial, refined, trustworthy.
   Palette taken from the logo: deep navy, warm grays, ivory.
   ============================================================ */

:root {
  --navy:        #1f3a68;
  --navy-deep:   #142a4d;
  --navy-soft:   #2c4a7a;
  --gray:        #7a7a7a;
  --gray-dark:   #4a4a4a;
  --gray-line:   #d8d4cc;
  --ivory:       #f7f4ee;
  --ivory-soft:  #faf8f3;
  --paper:       #ffffff;
  --ink:         #1a1a1a;
  --accent:      #b08a3e;

  --serif:  "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --sans:   "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --pad:  clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy-deep); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand img {
  height: 128px;
  width: auto;
  display: block;
}

@media (max-width: 600px) {
  .brand img { height: 88px; }
}

.site-nav {
  display: flex;
  gap: 2.5rem;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-dark);
  position: relative;
  padding: 0.25rem 0;
}

.site-nav a:hover { color: var(--navy); }

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--navy);
}

/* ---------- TYPOGRAPHY ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--navy-deep);
  margin: 0 0 1.5rem;
}

.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--navy-soft);
}

.heading-lg {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--navy-deep);
  margin: 0 0 1.25rem;
}

.heading-lg em {
  font-style: italic;
  font-weight: 400;
  color: var(--navy-soft);
}

.heading-lg.light { color: var(--ivory); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem;
}

.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: var(--gray-dark);
  max-width: 60ch;
  margin: 0 0 2rem;
}

p { margin: 0 0 1.1rem; color: var(--gray-dark); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--ivory);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-line);
}
.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy-deep);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 85% 15%, rgba(31, 58, 104, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--ivory-soft) 0%, var(--paper) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 15%;
  right: -10%;
  width: 50%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(176, 138, 62, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 950px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-rule {
  position: absolute;
  bottom: 0;
  left: var(--pad);
  right: var(--pad);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gray-line) 20%, var(--gray-line) 80%, transparent 100%);
}

/* ---------- SECTIONS ---------- */
.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section-light {
  background: var(--paper);
}

.section-dark {
  background: var(--navy-deep);
  color: var(--ivory);
  position: relative;
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(176, 138, 62, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(44, 74, 122, 0.4) 0%, transparent 50%);
  pointer-events: none;
}

.section-dark .container { position: relative; }

.section-dark p { color: rgba(247, 244, 238, 0.78); }

.section-accent {
  background: var(--ivory);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

/* ---------- TWO-COLUMN LAYOUT ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.two-col-label {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--gray-line);
  padding-top: 1.5rem;
}

.section-number {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
}

.section-number.light { color: var(--accent); }

.section-tag {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
}

.two-col-body em {
  font-style: italic;
  color: var(--navy);
}

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col-label { position: static; }
}

/* ---------- SECTION HEAD (dark) ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(247, 244, 238, 0.15);
}

/* ---------- SERVICES GRID ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
}

.service-card {
  padding: 2.25rem 2rem;
  border-top: 1px solid rgba(247, 244, 238, 0.15);
  border-right: 1px solid rgba(247, 244, 238, 0.15);
  transition: background .3s ease;
}

.service-card:hover {
  background: rgba(247, 244, 238, 0.03);
}

/* remove right border on rightmost column items via nth tricks */
.services-grid .service-card:nth-child(3n) { border-right: none; }

@media (max-width: 900px) {
  .services-grid .service-card:nth-child(3n) { border-right: 1px solid rgba(247, 244, 238, 0.15); }
  .services-grid .service-card:nth-child(2n) { border-right: none; }
}

@media (max-width: 600px) {
  .services-grid .service-card { border-right: none !important; }
}

.service-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ivory);
  margin: 0 0 0.85rem;
  letter-spacing: -0.005em;
}

.service-card p {
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0;
}

/* ---------- PROCESS LIST ---------- */
.process-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  counter-reset: process;
}

.process-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--gray-line);
}

.process-list li:last-child {
  border-bottom: 1px solid var(--gray-line);
}

.process-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent);
  padding-top: 0.1rem;
}

.process-list h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--navy-deep);
  margin: 0 0 0.4rem;
}

.process-list p {
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- PULL QUOTE ---------- */
.pull-quote {
  margin: 0;
  padding: 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  position: relative;
}

.pull-quote::before,
.pull-quote::after {
  font-family: var(--serif);
  font-style: italic;
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.pull-quote::before { content: "“"; margin-bottom: -1rem; }
.pull-quote::after  { content: "”"; margin-top: -2rem; }

.pull-quote p {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.4;
  color: var(--navy-deep);
  margin: 0;
}

/* ---------- CTA SECTION ---------- */
.cta-inner {
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}

.cta-inner .lede { margin-left: auto; margin-right: auto; }

/* ---------- CONTACT PAGE ---------- */
.contact-hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, var(--ivory-soft) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--gray-line);
}

.contact-lede { max-width: 55ch; }

.contact-section { padding-top: clamp(3rem, 6vw, 5rem); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info {
  border-top: 1px solid var(--gray-line);
}

.info-block {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray-line);
}

.info-block h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 0.5rem;
}

.info-block a,
.info-block p {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy-deep);
  margin: 0;
  line-height: 1.4;
}

.info-block a:hover { color: var(--accent); }

/* ---------- FORM ---------- */
.contact-form {
  background: var(--ivory-soft);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--gray-line);
}

.field { margin-bottom: 1.5rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; }
}

.field label {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-dark);
  margin-bottom: 0.55rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--gray-line);
  padding: 0.85rem 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
  border-radius: 0;
}

.field textarea {
  resize: vertical;
  font-family: var(--sans);
  font-size: 0.98rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31, 58, 104, 0.08);
}

.form-note {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 1rem 0 0;
  font-style: italic;
}

.form-success {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(31, 58, 104, 0.06);
  border-left: 3px solid var(--navy);
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--navy-deep);
}

.contact-form .btn { margin-top: 0.5rem; }

/* ---------- ABOUT PAGE ---------- */
.about-hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, var(--ivory-soft) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--gray-line);
}

.about-hero .lede { max-width: 60ch; }

.about-section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 820px) {
  .bio-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

.bio-photo {
  position: relative;
}

.bio-photo img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(15%);
  border-radius: 2px;
  box-shadow: 0 30px 60px -30px rgba(20, 42, 77, 0.35);
}

.bio-photo::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent);
  z-index: -1;
  border-radius: 2px;
}

.bio-content .role-tag {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
  display: block;
}

.bio-content .bio-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy-deep);
  margin: 0 0 1.5rem;
}

.bio-rule {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 0 0 1.5rem;
  border: none;
}

.bio-content p {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-dark);
  margin: 0 0 1.5rem;
}

.bio-credentials {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-line);
}

.bio-credentials h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 0.75rem;
}

.bio-credentials p {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--navy-deep);
  font-style: italic;
  margin: 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(247, 244, 238, 0.7);
  padding: 3.5rem 0 2.5rem;
  margin-top: 0;
}

.footer-inner {
  display: block;
  text-align: center;
}

.footer-meta p {
  color: rgba(247, 244, 238, 0.7);
  font-size: 0.92rem;
  margin: 0 auto 0.75rem;
  max-width: 60ch;
}

.copyright {
  font-size: 0.78rem !important;
  letter-spacing: 0.05em;
  color: rgba(247, 244, 238, 0.45) !important;
  margin-top: 1.5rem !important;
}

/* ---------- ANIMATION ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero .eyebrow,
.hero .display,
.hero .lede,
.hero-cta {
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.hero .eyebrow  { animation-delay: 0.05s; }
.hero .display  { animation-delay: 0.15s; }
.hero .lede     { animation-delay: 0.35s; }
.hero-cta       { animation-delay: 0.5s; }
