/* ============================================
   HEXAGON.IE — Agri-Drone Authority Ireland
   Colour Palette:
   - Forest Green:  #1A3C2A
   - Amber/Gold:    #F5A623
   - Light Green:   #2D5A3D
   - Off-white:     #F8F6F1
   - Mid-grey:      #6B7280
   ============================================ */

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

:root {
    --green-dark:  #1A3C2A;
    --green-mid:   #2D5A3D;
    --green-light: #3D7A52;
    --amber:       #F5A623;
    --amber-dark:  #D4891A;
    --cream:       #F8F6F1;
    --white:       #FFFFFF;
    --grey:        #6B7280;
    --grey-light:  #E5E7EB;
    --text:        #1A1A1A;
    --radius:      8px;
    --radius-lg:   16px;
    --shadow:      0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg:   0 8px 32px rgba(0,0,0,0.12);
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--radius);
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    border: 2px solid transparent; transition: all 0.2s ease;
}
.btn-primary { background: var(--amber); color: var(--green-dark); border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-dark); border-color: var(--amber-dark); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* ---- SECTION TITLES ---- */
.section-title { font-size: 2rem; font-weight: 800; color: var(--green-dark); margin-bottom: 12px; }
.section-sub { font-size: 1.05rem; color: var(--grey); max-width: 540px; }

/* ============================================
   HEADER
============================================ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--green-dark); border-bottom: 1px solid var(--green-mid);
    padding: 0;
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-hex { width: 32px; height: 37px; flex-shrink: 0; }
.logo-text { font-size: 1.2rem; font-weight: 800; color: var(--white); letter-spacing: -0.5px; }
.logo-dot { color: var(--amber); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 500; padding: 8px 14px; border-radius: var(--radius); transition: all 0.2s; }
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.main-nav .nav-cta { background: var(--amber); color: var(--green-dark); font-weight: 700; }
.main-nav .nav-cta:hover { background: var(--amber-dark); }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.4rem; cursor: pointer; padding: 8px; }

/* ============================================
   HERO
============================================ */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, #1E4A30 100%);
    padding: 100px 0 80px;
    color: var(--white);
}
.hero-bg-pattern {
    position: absolute; inset: 0; opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='70'%3E%3Cpolygon points='30,2 57,17 57,52 30,67 3,52 3,17' stroke='%23F5A623' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-size: 80px 90px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(245,166,35,0.15); border: 1px solid rgba(245,166,35,0.4);
    color: var(--amber); font-size: 0.85rem; font-weight: 600;
    padding: 6px 16px; border-radius: 99px; margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800;
    line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px;
}
.hero-accent { color: var(--amber); }
.hero-sub {
    font-size: 1.15rem; color: rgba(255,255,255,0.8);
    max-width: 520px; margin-bottom: 36px; line-height: 1.65;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
    display: flex; align-items: center; gap: 0;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg); padding: 20px 32px;
    width: fit-content;
}
.stat { text-align: center; padding: 0 28px; }
.stat strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--amber); }
.stat span { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

/* ============================================
   TOPICS
============================================ */
.topics { padding: 80px 0; background: var(--cream); }
.topics .section-title, .topics .section-sub { margin-bottom: 12px; }
.topics .section-sub { margin-bottom: 48px; }
.topic-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.topic-card {
    background: var(--white); border: 1px solid var(--grey-light);
    border-radius: var(--radius-lg); padding: 28px;
    transition: all 0.2s ease; display: block;
}
.topic-card:hover { border-color: var(--amber); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.topic-icon { font-size: 2rem; margin-bottom: 16px; }
.topic-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--green-dark); margin-bottom: 10px; }
.topic-card p { font-size: 0.9rem; color: var(--grey); line-height: 1.6; margin-bottom: 16px; }
.topic-link { font-size: 0.88rem; font-weight: 600; color: var(--amber-dark); }

/* ============================================
   WHY NOW
============================================ */
.why-now { padding: 80px 0; background: var(--white); }
.why-now-inner { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: center; }
.why-now-text h2 { font-size: 1.9rem; font-weight: 800; color: var(--green-dark); margin-bottom: 20px; line-height: 1.25; }
.why-now-text p { color: var(--grey); margin-bottom: 16px; line-height: 1.7; }
.why-now-text .btn { margin-top: 8px; }

.why-now-visual { display: flex; justify-content: center; align-items: center; }
.hex-visual { position: relative; width: 240px; height: 240px; display: flex; align-items: center; justify-content: center; }
.hex-ring {
    position: absolute; border-radius: 50%;
    border: 2px solid var(--amber); opacity: 0.15;
    animation: pulse 3s ease-in-out infinite;
}
.hex-ring-1 { width: 240px; height: 240px; animation-delay: 0s; }
.hex-ring-2 { width: 160px; height: 160px; animation-delay: 0.8s; opacity: 0.25; }
.hex-center { font-size: 4rem; z-index: 1; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.15; } 50% { transform: scale(1.06); opacity: 0.3; } }

/* ============================================
   FEATURED ARTICLES
============================================ */
.featured { padding: 80px 0; background: var(--cream); }
.featured .section-title { margin-bottom: 8px; }
.featured .section-sub { margin-bottom: 40px; }
.article-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 24px; }
.article-card {
    background: var(--white); border: 1px solid var(--grey-light);
    border-radius: var(--radius-lg); padding: 28px;
    display: flex; flex-direction: column;
}
.article-card--featured { border-left: 4px solid var(--amber); }
.article-tag {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--amber-dark); background: rgba(245,166,35,0.1);
    padding: 4px 10px; border-radius: 99px; margin-bottom: 14px; width: fit-content;
}
.article-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--green-dark); margin-bottom: 10px; line-height: 1.4; }
.article-card h3 a:hover { color: var(--amber-dark); }
.article-card p { font-size: 0.88rem; color: var(--grey); line-height: 1.6; flex: 1; margin-bottom: 20px; }
.article-link { font-size: 0.88rem; font-weight: 600; color: var(--amber-dark); }

/* ============================================
   NEWSLETTER
============================================ */
.newsletter { padding: 80px 0; background: var(--green-dark); }
.newsletter-inner {
    display: flex; align-items: center; gap: 48px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg); padding: 48px;
}
.newsletter-hex-icon { flex-shrink: 0; width: 80px; }
.newsletter-hex-icon svg { width: 80px; height: 80px; }
.newsletter-content h2 { font-size: 1.7rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.newsletter-content p { color: rgba(255,255,255,0.7); margin-bottom: 24px; line-height: 1.65; }
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
    flex: 1; min-width: 260px; padding: 14px 18px;
    border: 1.5px solid rgba(255,255,255,0.2); border-radius: var(--radius);
    background: rgba(255,255,255,0.08); color: var(--white);
    font-size: 0.95rem; outline: none;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input[type="email"]:focus { border-color: var(--amber); }
.newsletter-note { margin-top: 12px; font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-bottom: 0; }

/* ============================================
   FOOTER
============================================ */
.site-footer { background: #111E17; color: rgba(255,255,255,0.7); padding: 60px 0 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.6; }
.footer-links-group h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--amber); margin-bottom: 16px; }
.footer-links-group a { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.55); margin-bottom: 10px; transition: color 0.2s; }
.footer-links-group a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom nav a { font-size: 0.82rem; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-bottom nav a:hover { color: rgba(255,255,255,0.7); }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 900px) {
    .topic-grid { grid-template-columns: repeat(2, 1fr); }
    .article-grid { grid-template-columns: 1fr; }
    .why-now-inner { grid-template-columns: 1fr; }
    .why-now-visual { display: none; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .hero-stats { flex-wrap: wrap; }
}

@media (max-width: 640px) {
    .main-nav { display: none; }
    .nav-toggle { display: block; }
    .topic-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .newsletter-inner { flex-direction: column; padding: 32px; }
    .hero-stats { display: none; }
    .section-title { font-size: 1.6rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
