/* ============================================================
   Almedina Development — Stylesheet
   Colours: #538faa (blue), #cccccc (grey), #222 (text), #fff (bg)
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #538faa; text-decoration: none; transition: color .2s; }
a:hover { color: #3b6f8a; }
address { font-style: normal; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: all .25s ease;
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.2;
}

.btn-primary {
    background: #538faa;
    color: #fff;
    border-color: #538faa;
}
.btn-primary:hover {
    background: #3b6f8a;
    border-color: #3b6f8a;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #538faa;
    border-color: #538faa;
}
.btn-outline:hover {
    background: #538faa;
    color: #fff;
}

.btn-block { display: block; width: 100%; }
.btn-lg { padding: 18px 40px; font-size: 17px; }

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #eee;
    transition: box-shadow .3s;
}

.site-header.is-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-logo img {
    width: 180px;
    height: auto;
    display: block;
}

.main-nav {
    flex-shrink: 0;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    display: block;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #444;
    border-radius: 6px;
    transition: color .2s, background .2s;
}
.main-nav a:hover,
.main-nav a.active {
    color: #538faa;
    background: #f0f6fa;
}

.nav-separator {
    display: flex;
    align-items: center;
    padding-left: 16px;
    margin-left: 8px;
    border-left: 1px solid #ddd;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #444;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: color .2s, background .2s;
    white-space: nowrap;
}
.nav-dropdown-toggle:hover {
    color: #538faa;
    background: #f0f6fa;
}

.nav-dropdown-chevron {
    transition: transform .2s;
    flex-shrink: 0;
    color: currentColor;
}

.nav-dropdown.is-open .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 6px;
    z-index: 999;
    list-style: none;
    transition: opacity .15s ease, visibility .15s ease;
}

.nav-dropdown.is-open .nav-dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    border-radius: 6px;
    white-space: nowrap;
}
.nav-dropdown-menu a:hover {
    color: #538faa;
    background: #f0f6fa;
}

.nav-dropdown + li {
    margin-left: 8px;
}

.nav-cta {
    background: #538faa !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
}
.nav-cta:hover {
    background: #3b6f8a !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.nav-toggle-bar {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #333;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f7f9fb 0%, #eef4f8 100%);
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #222;
    margin-bottom: 20px;
}

.hero-highlight {
    color: #538faa;
}

.hero-location {
    font-size: 14px;
    font-weight: 500;
    color: #538faa;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 6px 0 0 0;
}

.hero-subtitle {
    font-size: 18px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-logo {
    flex-shrink: 0;
}
.hero-logo img {
    width: 340px;
    height: auto;
}

.hero-decoration {
    position: absolute;
    bottom: -40px;
    right: 5%;
    font-size: 180px;
    font-weight: 700;
    font-family: 'Inter', monospace;
    color: rgba(83, 143, 170, 0.04);
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.code-bracket {
    display: inline-block;
}

/* --- Section Shared --- */
.section-title {
    font-size: 34px;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin-bottom: 12px;
}

.section-intro {
    font-size: 17px;
    color: #666;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* --- Services --- */
.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 36px 32px;
    transition: transform .25s, box-shadow .25s;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f6fa;
    border-radius: 12px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

/* 3-column variant for homepage */
.services-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

/* Highlight card (holiday properties link) */
.service-card--highlight {
    border-color: #538faa;
    background: linear-gradient(135deg, #f0f6fa 0%, #fff 100%);
}

.service-card-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #538faa;
}
.service-card-link:hover {
    color: #3b6f8a;
}

/* --- Why Choose Us --- */
.why-us {
    padding: 80px 0;
    background: #f7f9fb;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.why-us-item {
    position: relative;
    padding-left: 56px;
}

.why-us-number {
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 28px;
    font-weight: 700;
    color: #538faa;
    opacity: 0.25;
}

.why-us-item h3 {
    font-size: 19px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.why-us-item p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

.why-us-item a {
    font-weight: 500;
}

/* --- Pricing --- */
.pricing {
    padding: 80px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pricing-card {
    background: #fff;
    border: 2px solid #e8ecf0;
    border-radius: 16px;
    padding: 36px 32px;
    position: relative;
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}

.pricing-card .btn {
    margin-top: auto;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.pricing-card--featured {
    border-color: #538faa;
    box-shadow: 0 8px 30px rgba(83, 143, 170, 0.15);
}
.pricing-card--featured:hover {
    box-shadow: 0 12px 36px rgba(83, 143, 170, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #538faa;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 18px;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.pricing-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: #222;
    line-height: 1;
}

.price-period {
    font-size: 16px;
    color: #888;
    font-weight: 400;
}

.pricing-features {
    margin-bottom: 28px;
}

.pricing-features li {
    padding: 8px 0 8px 28px;
    font-size: 15px;
    color: #444;
    position: relative;
    line-height: 1.5;
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 18px;
    height: 18px;
    background: #538faa;
    border-radius: 50%;
    opacity: 0.15;
}

.pricing-features li::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 18px;
    width: 8px;
    height: 5px;
    border-left: 2px solid #538faa;
    border-bottom: 2px solid #538faa;
    transform: rotate(-45deg);
}

.pricing-note {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: #888;
}

/* --- Portfolio --- */
.portfolio {
    padding: 80px 0;
    background: #f7f9fb;
}

.portfolio-showcase {
    display: flex;
    gap: 60px;
    align-items: center;
}

.portfolio-content {
    flex: 1;
}

.portfolio-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.portfolio-url {
    font-size: 14px;
    color: #538faa;
    margin-bottom: 16px;
    font-weight: 500;
}

.portfolio-content > p {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

.portfolio-highlights {
    margin-bottom: 28px;
}

.portfolio-highlights li {
    padding: 6px 0 6px 24px;
    font-size: 15px;
    color: #444;
    position: relative;
}

.portfolio-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #538faa;
    opacity: 0.35;
}

.portfolio-visual {
    flex-shrink: 0;
    width: 420px;
}

/* Browser Mockup */
.browser-mockup {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
}
.browser-dot:first-child { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #ffbd2e; }
.browser-dot:nth-child(3) { background: #28c840; }

.browser-address {
    flex: 1;
    margin-left: 8px;
    padding: 5px 12px;
    background: #fff;
    border-radius: 6px;
    font-size: 12px;
    color: #888;
    border: 1px solid #e0e0e0;
}

.browser-content {
    padding: 20px;
    min-height: 240px;
}

.mockup-header {
    height: 12px;
    width: 60%;
    background: #e8ecf0;
    border-radius: 6px;
    margin-bottom: 20px;
}

.mockup-hero {
    margin-bottom: 24px;
}

.mockup-text-lg {
    height: 16px;
    width: 80%;
    background: #d5dce3;
    border-radius: 4px;
    margin-bottom: 10px;
}

.mockup-text-sm {
    height: 10px;
    width: 55%;
    background: #e8ecf0;
    border-radius: 4px;
}

.mockup-cards {
    display: flex;
    gap: 12px;
}

.mockup-card {
    flex: 1;
    height: 80px;
    background: linear-gradient(135deg, #e8ecf0 0%, #d5dce3 100%);
    border-radius: 8px;
}

/* --- Contact --- */
.contact {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.contact-item a,
.contact-item address {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.contact-coverage {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
    line-height: 1.5;
}

.contact-cta-inner {
    background: #f7f9fb;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    border: 1px solid #e8ecf0;
}

.contact-cta-inner p {
    font-size: 16px;
    color: #555;
    margin-bottom: 24px;
    line-height: 1.7;
}

/* --- Footer --- */
.site-footer {
    background: #222;
    color: #aaa;
    padding-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-brand img {
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
}

.site-footer h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 14px;
    color: #aaa;
    transition: color .2s;
}
.footer-links a:hover {
    color: #538faa;
}

.footer-contact a {
    color: #aaa;
    font-size: 14px;
}
.footer-contact a:hover {
    color: #538faa;
}

.footer-contact address {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 4px;
}

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 13px;
    color: #666;
    text-align: center;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
        gap: 32px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-logo {
        display: none; /* logo already in header; hide duplicate in hero on tablet/mobile */
    }

    .services-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .portfolio-showcase {
        flex-direction: column;
    }

    .portfolio-visual {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    /* --- Header --- */
    .header-inner {
        padding: 14px 0;
    }

    .header-logo img {
        width: 150px;
    }

    /* --- Nav --- */
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        padding: 100px 32px 40px;
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 998;
        overflow-y: auto;
    }

    .main-nav.is-open {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 8px;
    }

    .main-nav a {
        padding: 14px 16px;
        font-size: 18px;
        border-radius: 8px;
    }

    .nav-separator {
        padding-left: 0;
        margin-left: 0;
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 8px;
        margin-top: 4px;
    }

    .nav-dropdown-toggle {
        width: 100%;
        padding: 14px 16px;
        font-size: 18px;
        justify-content: space-between;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 16px;
        background: transparent;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transition: opacity .15s ease, visibility .15s ease, max-height .2s ease;
    }

    .nav-dropdown.is-open .nav-dropdown-menu {
        max-height: 400px;
        visibility: visible;
        opacity: 1;
    }

    .nav-dropdown-menu a {
        font-size: 16px;
        padding: 10px 16px;
    }

    .nav-cta {
        margin-top: 16px;
        padding: 16px !important;
        font-size: 17px !important;
        text-align: center;
    }

    /* --- Hero --- */
    .hero {
        padding: 40px 0 36px;
    }

    .hero-content h1 {
        font-size: 28px;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    /* --- Sections --- */
    .services,
    .why-us,
    .pricing,
    .portfolio,
    .contact {
        padding: 56px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .section-intro {
        font-size: 15px;
        margin-bottom: 36px;
    }

    /* --- Services --- */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 28px 24px;
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }

    .service-icon {
        flex-shrink: 0;
        margin-bottom: 0;
        width: 52px;
        height: 52px;
    }

    .service-card h3 {
        font-size: 17px;
        margin-bottom: 6px;
    }

    /* --- Why Us --- */
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* --- Pricing --- */
    .pricing-grid {
        max-width: 100%;
    }

    /* --- Portfolio --- */
    .portfolio-visual {
        display: none; /* hide browser mockup on mobile to save space */
    }

    .portfolio-content h3 {
        font-size: 24px;
    }

    .portfolio-highlights li {
        font-size: 14px;
    }

    /* --- Contact --- */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-cta-inner {
        padding: 28px 24px;
    }

    /* --- Footer --- */
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 28px;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-brand img {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .btn {
        padding: 13px 24px;
        font-size: 15px;
    }

    .price-amount {
        font-size: 40px;
    }

    .contact-cta-inner {
        padding: 24px 20px;
    }
}
