/*
Theme Name: Nord Theme
Theme URI: https://example.com/nordtheme
Author: Claude
Author URI: https://claude.ai
Description: Ett modernt och rent WordPress-tema med marinblått som huvudfärg. Transparent header som övergår till marinblå vid scrollning.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nordtheme
Tags: blog, business, portfolio, two-columns, right-sidebar, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, sticky-post, translation-ready
*/

/* ============================================================
   CSS Custom Properties
   ============================================================ */

:root {
  --navy:          #0d2240;
  --navy-mid:      #162f58;
  --navy-light:    #1e3f74;
  --navy-pale:     #e8eef8;
  --accent:        #4a90c4;
  --accent-hover:  #3578a8;
  --gold:          #c8a96e;
  --white:         #ffffff;
  --off-white:     #f7f8fa;
  --text-dark:     #1a1e2e;
  --text-mid:      #4a5568;
  --text-light:    #8896ab;
  --border:        #dde3ed;

  --font-heading:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono:     'DM Mono', monospace;

  --header-h:      76px;
  --content-w:     1220px;
  --radius:        6px;
  --radius-lg:     14px;
  --shadow:        0 4px 24px rgba(13,34,64,.08);
  --shadow-lg:     0 16px 56px rgba(13,34,64,.16);

  --transition:    0.28s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   Reset & Base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 500; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1.25rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
li { margin-bottom: 0.35rem; }

blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--navy-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-mid);
}

code {
  font-family: var(--font-mono);
  background: var(--navy-pale);
  padding: .2em .45em;
  border-radius: 4px;
  font-size: .88em;
  color: var(--navy);
}

pre { background: var(--navy); color: var(--white); padding: 1.5rem; border-radius: var(--radius-lg); overflow-x: auto; margin-bottom: 1.5rem; }
pre code { background: none; color: inherit; padding: 0; }

hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ============================================================
   Layout Utilities
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--sm { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--lg { padding: clamp(5rem, 10vw, 9rem) 0; }

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.bg-navy { background: var(--navy); }
.bg-off-white { background: var(--off-white); }
.bg-navy-pale { background: var(--navy-pale); }

/* Screen reader */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .78rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .025em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(74,144,196,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

.btn-lg { padding: 1rem 2.4rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1.2rem; font-size: .82rem; }

/* ============================================================
   Site Header
   ============================================================ */

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

#site-header.transparent {
  background: transparent;
}

#site-header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 32px rgba(13,34,64,.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 38px;
  width: auto;
  transition: opacity var(--transition);
}

.site-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Navigation */
.main-nav { display: flex; align-items: center; }

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .2rem;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .55rem .85rem;
  color: rgba(255,255,255,.88);
  font-size: .88rem;
  font-weight: 450;
  letter-spacing: .015em;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

/* Dropdown arrow */
.nav-menu > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 8px; height: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='rgba(255,255,255,.7)'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  transition: transform var(--transition);
}

.nav-menu > li.menu-item-has-children:hover > a::after { transform: rotate(180deg); }

/* Dropdown */
.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + .4rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: .5rem;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  transform: translateX(-50%) translateY(-6px);
}

.nav-menu > li.menu-item-has-children:hover > .sub-menu {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.sub-menu li a {
  display: block;
  padding: .55rem .9rem;
  color: var(--text-mid);
  font-size: .87rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.sub-menu li a:hover {
  background: var(--navy-pale);
  color: var(--navy);
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-left: 1.25rem;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  border: none;
  background: transparent;
  margin-left: 1rem;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   Hero Section
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .35;
}

.hero-bg-video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .25;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,34,64,.88) 0%, rgba(22,47,88,.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 100px;
  padding: .38rem 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.85);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  max-width: 800px;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.78);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
  flex-wrap: wrap;
}

.hero-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  margin-bottom: .3rem;
}

.hero-stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Decorative */
.hero-shape {
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 80px;
  z-index: 2;
}

.hero-shape svg { display: block; width: 100%; height: 100%; }

/* ============================================================
   Section Headers
   ============================================================ */

.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header.center { text-align: center; }

.section-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
  position: relative;
  padding-left: 1.4rem;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-header.center .section-tag { padding-left: 0; }
.section-header.center .section-tag::before { display: none; }

.section-header h2 { margin-bottom: .75rem; }
.section-header p { font-size: 1.05rem; max-width: 540px; }
.section-header.center p { margin: 0 auto; }

/* ============================================================
   Services / Cards Grid
   ============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  background: var(--navy-pale);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background var(--transition);
}

.service-icon svg { width: 24px; height: 24px; stroke: var(--navy); }
.service-card:hover .service-icon { background: var(--navy); }
.service-card:hover .service-icon svg { stroke: var(--white); }

.service-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.service-card p { font-size: .92rem; color: var(--text-mid); margin: 0; }

/* ============================================================
   Feature Section (alternating)
   ============================================================ */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-media { order: 2; }
.feature-row.reverse .feature-text { order: 1; }

.feature-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--navy-pale);
  position: relative;
}

.feature-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.feature-media-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-pale) 0%, var(--border) 100%);
  color: var(--text-light);
  font-size: .9rem;
}

.feature-text .section-tag { margin-bottom: .9rem; }
.feature-text h2 { margin-bottom: 1rem; }
.feature-text p { margin-bottom: 1.5rem; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  color: var(--text-mid);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: '';
  display: block;
  width: 20px; height: 20px;
  min-width: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%230d2240'/%3E%3Cpath d='M6 10l3 3 5-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  margin-top: .15rem;
}

/* ============================================================
   Testimonials
   ============================================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}

.testimonial-stars svg {
  width: 16px; height: 16px;
  fill: var(--gold);
}

.testimonial-text {
  font-size: .97rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-pale);
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }

.testimonial-name {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
}

.testimonial-role {
  display: block;
  font-size: .82rem;
  color: var(--text-light);
}

/* ============================================================
   CTA Banner
   ============================================================ */

.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 250px; height: 250px;
  background: rgba(74,144,196,.08);
  border-radius: 50%;
}

.cta-banner h2 { color: var(--white); margin-bottom: .75rem; }
.cta-banner p { color: rgba(255,255,255,.72); font-size: 1.1rem; max-width: 540px; margin: 0 auto 2rem; }
.cta-banner-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ============================================================
   Blog Posts
   ============================================================ */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.post-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: all var(--transition);
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.post-card-image {
  aspect-ratio: 16/9;
  background: var(--navy-pale);
  overflow: hidden;
}

.post-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.post-card:hover .post-card-image img { transform: scale(1.04); }

.post-card-body { padding: 1.5rem; }

.post-category {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .65rem;
}

.post-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }

.post-card p { font-size: .9rem; color: var(--text-mid); margin-bottom: 1rem; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .82rem;
  color: var(--text-light);
}

/* ============================================================
   Sidebar & Widgets
   ============================================================ */

.content-area {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.widget-area { }

.widget {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--border);
}

/* ============================================================
   Site Footer
   ============================================================ */

#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding-top: clamp(3.5rem, 7vw, 6rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  color: var(--white);
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  max-width: 280px;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.footer-social { display: flex; gap: .6rem; }

.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.social-link svg { width: 16px; height: 16px; fill: var(--white); }

.footer-col h4 {
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  font-family: var(--font-body);
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li { margin-bottom: .55rem; }

.footer-menu a {
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-menu a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin-bottom: .75rem;
  font-size: .9rem;
  color: rgba(255,255,255,.55);
}

.footer-contact-item svg {
  width: 16px; height: 16px;
  stroke: var(--accent);
  flex-shrink: 0;
  margin-top: .15rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.38);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

.footer-bottom-links { display: flex; gap: 1.5rem; }

/* ============================================================
   Forms
   ============================================================ */

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: .87rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: .45rem;
}

.form-control {
  width: 100%;
  padding: .72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,144,196,.15);
}

textarea.form-control { resize: vertical; min-height: 130px; }

/* ============================================================
   WordPress Core Classes
   ============================================================ */

.wp-block-image { margin: 2rem 0; }
.aligncenter { text-align: center; margin: 2rem auto; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }

.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: .9rem;
  color: var(--text-mid);
  text-decoration: none;
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--navy); color: var(--navy); }
.pagination .current { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-row.reverse .feature-media { order: 0; }
  .feature-row.reverse .feature-text { order: 0; }
  .content-area { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .nav-menu { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open .nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: var(--navy);
    padding: 2rem 1.5rem;
    gap: .5rem;
    overflow-y: auto;
    align-items: flex-start;
  }

  .main-nav.open .nav-menu > li { width: 100%; }
  .main-nav.open .nav-menu > li > a { padding: .9rem 1rem; font-size: 1rem; width: 100%; }

  .main-nav.open .sub-menu {
    display: block;
    position: static;
    transform: none;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    margin-top: .3rem;
  }

  .main-nav.open .sub-menu li a { color: rgba(255,255,255,.75); }
  .main-nav.open .sub-menu li a:hover { background: rgba(255,255,255,.1); color: var(--white); }

  .hero-stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cta-banner-actions { flex-direction: column; align-items: center; }
}
