/* ==================================================
   Ocean City IT - Main Stylesheet
   Used by: Home page + About page
================================================== */

/* =========================
   Reset & Base Styles
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #f8fafc;
}

/* =========================
   Typography
========================= */

p {
    margin-bottom: 1.2rem;
}

h2 {
    margin-bottom: 1.25rem;
}

h3 {
    margin-bottom: 0.625rem;
}

ul {
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
}

li {
    margin-bottom: 0.5rem;
}

/* =========================
   Accessibility
========================= */

.skip-link {
    position: absolute;
    left: 0;
    top: -40px;
    background: #0f172a;
    color: #fff;
    padding: 10px 14px;
    z-index: 1000;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* =========================
   Layout
========================= */

.container {
    width: 90%;
    max-width: 1280px;
    margin-inline:auto;
}

/* =========================
   Header & Navigation
========================= */

header {
    background: #0f172a;
    color: #fff;
    padding: 0.75rem 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav img {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Navigation Links */

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.nav-links a[aria-current="page"] {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* =========================
   Hero Section
========================= */

.hero {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
    text-align: center;
    padding: 90px 20px;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #e5e7eb;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: auto;
}

/* =========================
   Buttons
========================= */

.btn {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 28px;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    cursor:pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    color: #0f172a;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 180px;
}

/* =========================
   Accessibility & Focus
========================= */

summary {
    cursor: pointer;
}

a:focus-visible,
.btn:focus-visible,
summary:focus-visible,
.card:focus-within {
    outline: 3px solid #92400e;
    outline-offset: 3px;
}

a:focus:not(:focus-visible) {
    outline: none;
}

/* =========================
   Cards
========================= */

.card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card h3 {
    margin-bottom: 10px;
    color: #1e3a8a;
}

/* =========================
   Sections
========================= */

section {
    padding: 80px 0;
}

section > .container > p {
    max-width: 75ch;
    margin-left: auto;
    margin-right: auto;
}

.section-note {
    margin-top: 40px;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* =========================
   Hero Features
========================= */

.hero-features {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #e5e7eb;
}

/* =========================
   Trust Bar
========================= */

section.trust-bar {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #e5e7eb;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.trust-grid strong {
    display: block;
    color: #1e3a8a;
    font-size: 1.2rem;
}

.trust-grid p {
    color: #4b5563;
}

/* =========================
   Section Titles
========================= */

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
}

/* =========================
   Services
========================= */

.services-intro {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    color: #374151;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 20px;
}

/* =========================
   About Section
========================= */

.about {
    max-width: 70ch;
    margin: auto;
    text-align: center;
}

/* =========================
   FAQ
========================= */

.faq-item {
    margin-bottom: 15px;
}

.faq {
    max-width: 800px;
    margin: auto;
}

.faq h3 {
    margin-top: 25px;
    color: #1e3a8a;
}

/* =========================
   Contact
========================= */

.contact {
    text-align: center;
}

.contact-box {
    background: #fff;
    max-width: 700px;
    margin: auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.contact a {
    color: #1e3a8a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* =========================
   Social icon
========================= */

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    display: block;
    vertical-align: middle;
}

/* =========================
   Footer
========================= */

footer {
    background: #0f172a;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    line-height: 1.6;
}

.footer-container {
  max-width: 1280px;
  margin: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

footer a {
    color: #bfdbfe;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links a:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 4px;
}

.footer-brand {
    margin-bottom: .5rem;
}

.footer-tagline {
    margin-bottom: 1.25rem;
}

/* Footer Address */

.footer-address {
  margin-top: 1rem;
  font-style: normal;
}

.footer-meta {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #ffffff26;
}

/* Screen-reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {

    /* Navigation */
    .nav {
        flex-direction: column;
        gap: 16px;
    }

    .nav img {
        height: 48px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .nav-links a {
        font-size: 1rem;
    }

    /* Hero */
    .hero {
        padding: 70px 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Trust Bar */
    .trust-grid {
        grid-template-columns: 1fr;
    }

}